org.argouml.ui
Interface TabTarget

All Superinterfaces:
java.util.EventListener, org.argouml.ui.targetmanager.TargetListener
All Known Subinterfaces:
TabFigTarget, TabModelTarget
All Known Implementing Classes:
StylePanel, StylePanelFig, StylePanelFigNodeModelElement, StylePanelFigRRect, StylePanelFigText, TabText

public interface TabTarget
extends org.argouml.ui.targetmanager.TargetListener

An interface for JPanels that are in the DetailsPane, and that change target based on the selections made in the gui/views.

Since:
0.13.4

Method Summary
 java.lang.Object getTarget()
          Get the current target.
 void refresh()
          Refresh the tab IN TOTAL.
 void setTarget(java.lang.Object target)
          Set the target.
 boolean shouldBeEnabled(java.lang.Object target)
          Return true whether the tab should be enabled with the given target.
 
Methods inherited from interface org.argouml.ui.targetmanager.TargetListener
targetAdded, targetRemoved, targetSet
 

Method Detail

setTarget

void setTarget(java.lang.Object target)
Set the target.

Parameters:
target - the new target to set

getTarget

java.lang.Object getTarget()
Get the current target.

Returns:
the target

refresh

void refresh()
Refresh the tab IN TOTAL.


shouldBeEnabled

boolean shouldBeEnabled(java.lang.Object target)
Return true whether the tab should be enabled with the given target.

Parameters:
target - the given target
Returns:
true if the tab should be enabled


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Cookbook