de.uni_paderborn.fujaba.fsa
Class FSACollapsable

java.lang.Object
  extended byde.uni_paderborn.fujaba.basic.BasicIncrement
      extended byde.uni_paderborn.fujaba.fsa.FSAObject
          extended byde.uni_paderborn.fujaba.fsa.FSAContainer
              extended byde.uni_paderborn.fujaba.fsa.FSAPanel
                  extended byde.uni_paderborn.fujaba.fsa.FSACollapsable
All Implemented Interfaces:
java.lang.Comparable, java.util.EventListener, ParentListener, java.beans.PropertyChangeListener, UniqueIdentifier

public class FSACollapsable
extends FSAPanel
implements java.beans.PropertyChangeListener

UMLClass: 'FSAPanel'

Version:
$Revision: 1.27.2.3 $
Author:
$Author: lowende $

Field Summary
static java.lang.String COLLAPSED
          No comment provided by developer, please add a comment to improve documentation.
 
Fields inherited from class de.uni_paderborn.fujaba.fsa.FSAObject
COLOR_BACKGROUND, COLOR_FOCUSED, COLOR_FOREGROUND, COLOR_SELECTED, DIMENSION, JCOMPONENT_CLIENT_PROPERTY, LOCATION, TRANSIENT_PROPERTIES_DEFAULT
 
Fields inherited from class de.uni_paderborn.fujaba.basic.BasicIncrement
dontUseAccessMethodsInThisClass
 
Constructor Summary
FSACollapsable(LogicUnparseInterface incr)
          Calls the constructor FSAPanel(incr, propName, parent) with propName = "collapsed" and parent = null.
FSACollapsable(LogicUnparseInterface incr, javax.swing.JComponent parent)
          Calls the constructor FSAPanel(incr, propName, parent) with propName = "collapsed".
FSACollapsable(LogicUnparseInterface incr, java.lang.String propName, javax.swing.JComponent parent)
          Calls the constructor FSAPanel(incr, propName, parent).
FSACollapsable(LogicUnparseInterface incr, java.lang.String propName, javax.swing.JComponent parent, boolean transientProperties)
          Overwrites the constructor of FSAPanel.
 
Method Summary
protected  void applyProperties()
          If there is collapsed information saved in unparse information use that, else use default collapse-state.
protected  javax.swing.JComponent createJComponent()
          creates a standard JPanel with frame for this FSAFrame UMLMethod: '+ createJComponent () : Void'
 java.util.Comparator getLayoutComparator()
          Get the layoutComparator attribute of the FSACollapsable object
 boolean isCollapsed()
          Returns true if its inner collapsable panel is collapsed.
protected  void saveAdditionalFSAProperties()
          Saves the following additional properties: collapsed:boolean
 void saveCollapsed()
          Saves the 'collapsed' information of this FSACollapsable object.
 void setCollapsed(boolean collapsed)
          Sets the collapse status of its inner component.
protected  void setDefaultProperties()
          This methods sets the default properties for new FSAObjects.
 void setLayoutComparator(java.util.Comparator comp)
          Sets the layoutComparator attribute of the FSACollapsable object
 
Methods inherited from class de.uni_paderborn.fujaba.fsa.FSAPanel
getBorder, isLocked, setBorder, setLayout, setLock
 
Methods inherited from class de.uni_paderborn.fujaba.fsa.FSAContainer
addToChildren, addToComponents, getChildConnector, getChildren, getComponents, getDefaultAttrName, getDefaultUpdaterClass, getFromChildren, getFromChildren, getFromChildren, getFromComponents, hasInChildren, hasInComponents, iteratorOfChildren, iteratorOfComponents, removeFromChildren, removeFromComponents, removeYou, setBold, setItalic, setOpaque, sizeOfChildren, sizeOfComponents
 
Methods inherited from class de.uni_paderborn.fujaba.fsa.FSAObject
addAncestorListener, addComponentListener, addDimensionToUnparseInformation, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addParentListener, addPointToUnparseInformation, addPropertyChangeListener, addPropertyChangeListener, addToUpdater, addUnparseInformation, addVetoableChangeListener, createDefaultUpdater, dragByDelta, dragTo, findChildForProperty, findFSAObjectFromJComponent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getASGInformation, getASGInformation, getBackground, getDiagramRoot, getDimensionFromUnparseInformation, getFont, getForeground, getFSAInterface, getFSAObjectFromJComponent, getFSAQualifier, getID, getJComponent, getJComponent, getLocation, getLocation, getLogic, getLogic, getLogicFromJComponent, getMaximumSize, getMinimumSize, getParent, getParentID, getParentOfJComponent, getPointFromUnparseInformation, getPreferredSize, getPropertyName, getQualifiedName, getQualifiedName, getSize, getUnparseInformation, hasInUpdater, initFSAProperties, initLocation, invalidate, isBold, isDelegated, isFocused, isItalic, isSelected, isTransientProperties, isUnderlined, isVisible, iteratorOfAncestorListeners, iteratorOfComponentListeners, iteratorOfFocusListeners, iteratorOfInputMethodListeners, iteratorOfKeyListeners, iteratorOfMouseListeners, iteratorOfMouseMotionListeners, iteratorOfPropertyChangeListeners, iteratorOfPropertyChangeListeners, iteratorOfUpdater, iteratorOfVetoableChangeListeners, parentChanged, propertyChange, removeAllFromUpdater, removeAllUnparseInformation, removeAncestorListener, removeComponentListener, removeFocusListener, removeFromUnparseInformation, removeFromUpdater, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeParentListener, removePointFromUnparseInformation, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, saveDimension, saveFSAProperties, saveLocation, setBackground, setFocused, setFont, setForeground, setFSAInterface, setFSAObjectFromJComponent, setLocation, setLocation, setLogic, setParentOfJComponent, setPreferredSize, setPropertyName, setSelected, setTransientProperties, setUnderlined, setVisible, sizeOfUpdater, toString
 
Methods inherited from class de.uni_paderborn.fujaba.basic.BasicIncrement
compareTo, getID, getUniqueID, getUniqueID, isGenerated, lessUniqueId, readAttributes, readAttributes, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, resetClassInfos, resetFieldWriteMethods, setAttribValue, setAttribValue, setGenerated, setID, setUniqueId, writeAttributes, writeClassToStringBuffer, writeClassToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 

Field Detail

COLLAPSED

public static final java.lang.String COLLAPSED
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values
Constructor Detail

FSACollapsable

public FSACollapsable(LogicUnparseInterface incr)
Calls the constructor FSAPanel(incr, propName, parent) with propName = "collapsed" and parent = null.

Parameters:
incr - No description provided

FSACollapsable

public FSACollapsable(LogicUnparseInterface incr,
                      javax.swing.JComponent parent)
Calls the constructor FSAPanel(incr, propName, parent) with propName = "collapsed".

Parameters:
incr - No description provided
parent - No description provided

FSACollapsable

public FSACollapsable(LogicUnparseInterface incr,
                      java.lang.String propName,
                      javax.swing.JComponent parent)
Calls the constructor FSAPanel(incr, propName, parent).

Parameters:
incr - No description provided
propName - No description provided
parent - No description provided

FSACollapsable

public FSACollapsable(LogicUnparseInterface incr,
                      java.lang.String propName,
                      javax.swing.JComponent parent,
                      boolean transientProperties)
Overwrites the constructor of FSAPanel.

Parameters:
incr - No description provided
propName - No description provided
parent - No description provided
transientProperties - No description provided
Method Detail

createJComponent

protected javax.swing.JComponent createJComponent()
creates a standard JPanel with frame for this FSAFrame UMLMethod: '+ createJComponent () : Void'

Overrides:
createJComponent in class FSAPanel
Returns:
No description provided

isCollapsed

public boolean isCollapsed()
Returns true if its inner collapsable panel is collapsed.

Returns:
The collapsed value

setCollapsed

public void setCollapsed(boolean collapsed)
Sets the collapse status of its inner component.

Parameters:
collapsed - The new collapsed value

setLayoutComparator

public void setLayoutComparator(java.util.Comparator comp)
Sets the layoutComparator attribute of the FSACollapsable object

Parameters:
comp - The new layoutComparator value

getLayoutComparator

public java.util.Comparator getLayoutComparator()
Get the layoutComparator attribute of the FSACollapsable object

Returns:
The layoutComparator value

applyProperties

protected void applyProperties()
If there is collapsed information saved in unparse information use that, else use default collapse-state.

Overrides:
applyProperties in class FSAObject
See Also:
FSAObject.saveAdditionalFSAProperties()

setDefaultProperties

protected void setDefaultProperties()
This methods sets the default properties for new FSAObjects.

Overrides:
setDefaultProperties in class FSAObject

saveAdditionalFSAProperties

protected void saveAdditionalFSAProperties()
Saves the following additional properties: collapsed:boolean

Overrides:
saveAdditionalFSAProperties in class FSAObject
See Also:
FSAObject.saveFSAProperties(), FSAObject.applyProperties()

saveCollapsed

public void saveCollapsed()
Saves the 'collapsed' information of this FSACollapsable object.