|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.argouml.ui.TabSpawnable
org.argouml.cognitive.checklist.ui.TabChecklist
Tab to show the checklist for a certain element.
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
private boolean |
shouldBeEnabled
|
private JTable |
table
|
private TableModelChecklist |
tableModel
|
private Object |
target
|
Fields inherited from class org.argouml.ui.TabSpawnable |
|
Fields inherited from class javax.swing.JPanel |
|
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
TabChecklist()
The constructor. |
Method Summary | |
void |
actionPerformed(ActionEvent ae)
Enable buttons when selection made. |
private Object |
findTarget(Object t)
Converts a selected element to a target that is appropriate for a checklist. |
Object |
getTarget()
get the current target |
void |
refresh()
Refreshes the tab IN TOTAL |
void |
resizeColumns()
Resize the columns to fit. |
void |
setTarget(Object t)
Actually prepares the Tab. |
boolean |
shouldBeEnabled(Object t)
Decides if the tab should be enabled or not. |
void |
targetAdded(TargetEvent e)
Fired when a target is added to the list of targets. |
void |
targetRemoved(TargetEvent e)
Fired when a target is removed from the list of targets |
void |
targetSet(TargetEvent e)
Fired when a total new set of targets is set |
void |
valueChanged(ListSelectionEvent lse)
|
Methods inherited from class org.argouml.ui.TabSpawnable |
clone, getOrientation, getTitle, setOrientation, setTitle, spawn |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private Object target
private TableModelChecklist tableModel
private boolean shouldBeEnabled
private JTable table
Constructor Detail |
public TabChecklist()
Method Detail |
private Object findTarget(Object t)
The argument can be either a Fig, if a Figure when something is selected from a diagram or a model element when an object is selected from the explorer.
t
- that is an object.
public void setTarget(Object t)
setTarget
in interface TabTarget
t
- is the target to show the list for.public Object getTarget()
TabTarget
getTarget
in interface TabTarget
TabTarget.getTarget()
public void refresh()
TabTarget
refresh
in interface TabTarget
TabTarget.refresh()
public boolean shouldBeEnabled(Object t)
shouldBeEnabled
in interface TabTarget
t
- is the object element that it is then enabled for
public void resizeColumns()
public void actionPerformed(ActionEvent ae)
actionPerformed
in interface ActionListener
ActionListener.actionPerformed(java.awt.event.ActionEvent)
public void valueChanged(ListSelectionEvent lse)
valueChanged
in interface ListSelectionListener
ListSelectionListener.valueChanged(javax.swing.event.ListSelectionEvent)
public void targetAdded(TargetEvent e)
TargetListener
targetAdded
in interface TargetListener
e
- The targetevent, name will be TARGET_ADDEDTargetListener.targetAdded(org.argouml.ui.targetmanager.TargetEvent)
public void targetRemoved(TargetEvent e)
TargetListener
targetRemoved
in interface TargetListener
e
- The targetevent, name will be TARGET_REMOVEDTargetListener.targetRemoved(org.argouml.ui.targetmanager.TargetEvent)
public void targetSet(TargetEvent e)
TargetListener
targetSet
in interface TargetListener
e
- The targetevent, name will be TARGET_SETTargetListener.targetSet(org.argouml.ui.targetmanager.TargetEvent)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |