|
|||||||||||
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.uml.ui.TabConstraints
Tab for OCL constraint editing.
Nested Class Summary | |
private static class |
TabConstraints.ConstraintModel
Adapter to provide information and a manipulation interface for a target element's set of constraints to the constraint editor. |
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 static Logger |
LOG
|
private Object |
mMmeiTarget
The current target element. |
private tudresden.ocl.gui.OCLEditor |
mOcleEditor
The actual editor pane. |
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 | |
TabConstraints()
The constructor. |
Method Summary | |
private JToolBar |
getOclToolbar()
Get a reference to the toolbar object contained in the OCLEditor component. |
Object |
getTarget()
Get the target element whose properties this tab presents. |
void |
refresh()
Refresh the tab because the target has changed. |
void |
setTarget(Object oTarget)
Set the target element to be displayed in this tab. |
private void |
setToolbarFloatable(boolean enable)
Set the toolbar floating style. |
private void |
setToolbarRollover(boolean enable)
Set the toolbar rollover style. |
boolean |
shouldBeEnabled(Object target)
Should this tab be activated for the current target element? |
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 |
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 static final Logger LOG
private tudresden.ocl.gui.OCLEditor mOcleEditor
private Object mMmeiTarget
Constructor Detail |
public TabConstraints()
Method Detail |
private void setToolbarRollover(boolean enable)
enable
- If true then button borders do not become visible
until mouse rolls over button.private void setToolbarFloatable(boolean enable)
enable
- If true then the toolbar can be floated and dockedprivate JToolBar getOclToolbar()
public boolean shouldBeEnabled(Object target)
Argo only supports constraints for Classes and Features (eg. Attributes and Operations) currently.
shouldBeEnabled
in interface TabTarget
target
- the given target
TabTarget.shouldBeEnabled(java.lang.Object)
public Object getTarget()
getTarget
in interface TabTarget
TabTarget.getTarget()
public void refresh()
refresh
in interface TabTarget
public void setTarget(Object oTarget)
setTarget
in interface TabTarget
oTarget
- the target to setTabTarget.setTarget(java.lang.Object)
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 |