com.tensegrity.gui.swing.control.slidepanel
Class SlideTitle

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bycom.tensegrity.gui.swing.control.slidepanel.SlideTitle
All Implemented Interfaces:
javax.accessibility.Accessible, Evaluable, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public final class SlideTitle
extends javax.swing.JPanel
implements Evaluable

This class represents a single title line including buttons. The title text is display using a standard font and the component renders itself. This class is internal to this package.

Version:
$Id: SlideTitle.java,v 1.55 2005/09/13 13:49:01 BurkhardWick Exp $
Author:
Stepan Rutz, Gilles Iachelini
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 
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.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
 
Method Summary
 void addObserver(Observer observer)
          Adds an Observer to the internal observable instance.
 void applyEvList()
          Tells the component to apply its UIItemEvaluationList.
 void deleteObserver(Observer observer)
          Removes an Observer from the internal observable instance.
 void doLayout()
           
 JPopupMenuSource getPopupMenuSource()
          Returns the JPopupMenuSource or null if none is set.
 java.lang.String getText()
          Returns the text of this Title element.
 void installEvList()
          Tells the component to setup its internal state.
 boolean isActivated()
          Returns true whenever this title is marked as activated.
 boolean isSelected()
          Returns the selected flag that indicates whether the slide is open or closed.
 void notifyObservers()
          Invokes the Observable.notifyObservers() method on the internal observable.
 void paintComponent(java.awt.Graphics g)
           
 void setActivated(boolean activated)
          Toggles the internal activation flag of this SlideTitle.
 void setChanged()
          Sets the internal observable instance as changed.
 void setSelected(boolean selected)
          Sets the selected flag and toggles the update in the
 void setText(java.lang.String s)
          Sets the text of this title and repaints it.
 void setTopLevel(boolean topLevel)
          Sets the topLevel.
 void updateUI()
          UpdateUI by calling super class and invoking the #setFieldsFromUIValues() method.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

isSelected

public boolean isSelected()
Returns the selected flag that indicates whether the slide is open or closed.

Returns:
boolean flag that indicates whether the slide is open or closed.

setSelected

public void setSelected(boolean selected)
Sets the selected flag and toggles the update in the

Parameters:
selected - The selected to set

setActivated

public void setActivated(boolean activated)
Toggles the internal activation flag of this SlideTitle. This will influence the drawing. Whenever a SlideTitle is activated but not enabled, or enabled but not activated, it will bail out to disable-mode drawing.

Parameters:
activated - the new activation state for this title.

isActivated

public boolean isActivated()
Returns true whenever this title is marked as activated.

Returns:
false, if this title is not activated yet.

setText

public void setText(java.lang.String s)
Sets the text of this title and repaints it.

Parameters:
s - the new text as string to set for this title.

setChanged

public void setChanged()
Sets the internal observable instance as changed.


addObserver

public void addObserver(Observer observer)
Adds an Observer to the internal observable instance.

Parameters:
observer - a new Observer to add to the internal list.

deleteObserver

public void deleteObserver(Observer observer)
Removes an Observer from the internal observable instance.

Parameters:
observer - the Observer to delete from the observable list.

getText

public java.lang.String getText()
Returns the text of this Title element.

Returns:
the text of this Title element.

notifyObservers

public void notifyObservers()
Invokes the Observable.notifyObservers() method on the internal observable.


updateUI

public void updateUI()
UpdateUI by calling super class and invoking the #setFieldsFromUIValues() method.

See Also:
JComponent.updateUI()

paintComponent

public void paintComponent(java.awt.Graphics g)

setTopLevel

public void setTopLevel(boolean topLevel)
Sets the topLevel.

Parameters:
topLevel - The topLevel to set

getPopupMenuSource

public final JPopupMenuSource getPopupMenuSource()
Returns the JPopupMenuSource or null if none is set.

Returns:
the JPopupMenuSource or null if none is set.

installEvList

public void installEvList()
Description copied from interface: Evaluable
Tells the component to setup its internal state.

Specified by:
installEvList in interface Evaluable

applyEvList

public void applyEvList()
Description copied from interface: Evaluable
Tells the component to apply its UIItemEvaluationList.

Specified by:
applyEvList in interface Evaluable

doLayout

public void doLayout()


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.