uci.ui
Class PropSheetCategory

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--uci.ui.PropSheet
                                |
                                +--uci.ui.PropSheetCategory

public class PropSheetCategory
extends PropSheet

A PropSheet that shows only properties in a given Category. The display of the properties is in a fairly random order down the sheet. This class also has several static registration methods that control how specific properties will be displayed and editied.

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Inner classes inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Field Summary
protected  String _category
           
protected  Hashtable _compsKeys
          Given an AWT component, what is the name of the property it edits.
protected  Hashtable _inUse
           
protected  JFrame _jframe
           
protected  Hashtable _keysComps
          Given a property name, which AWT component edits its value.
protected  Hashtable _labels
           
protected  PropertyDescriptor[] _properties
           
protected  Hashtable _shown
           
static String dots
           
protected  boolean inRecursion
           
 
Fields inherited from class uci.ui.PropSheet
_autoApply, _editorsPds, _ignorePropChanges, _lastUpdateTime, _pdsEditors, _pendingStores, _propertiesFont, _sel, _tabName, MIN_UPDATE
 
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
 
Constructor Summary
PropSheetCategory(JFrame f)
           
 
Method Summary
 Component addKeyComp(PropertyDescriptor pd)
           
 void addNotify()
           
 boolean canEdit(Object item)
           
 String getCategory()
           
 Dimension getMinimumSize()
           
 Dimension getPreferredSize()
           
 Dimension getSize()
           
 void hide(PropertyDescriptor pd)
           
 Component makeComp(PropertyDescriptor pd)
          If I don't have a comp for a given property name, or the last comp is not suitable, then make a new AWT component (possibly a PropertyEditor).
 void setCategory(String cat)
           
 void setComponentValue(PropertyDescriptor pd, Component comp)
          Display the value of a given property
 void show(PropertyDescriptor pd)
           
 void updateComponent(PropertyDescriptor pd)
           
 void updateComponents()
           
 void updateKeysComps()
           
 
Methods inherited from class uci.ui.PropSheet
apply, applyProperty, getPropertiesFont, getTabName, propertyChange, revert, setAutoApply, setPropertiesFont, setSelection, setTabName, setVisible, store
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUIClassID, paramString, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInsets, getInsets, getLocation, getMaximumSize, getNextFocusableComponent, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, processComponentKeyEvent, processFocusEvent, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getToolkit, getTreeLock, gotFocus, handleEvent, hide, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dots

public static final String dots

_keysComps

protected Hashtable _keysComps
Given a property name, which AWT component edits its value.

_compsKeys

protected Hashtable _compsKeys
Given an AWT component, what is the name of the property it edits.

_inUse

protected Hashtable _inUse

_labels

protected Hashtable _labels

_shown

protected Hashtable _shown

_category

protected String _category

_properties

protected PropertyDescriptor[] _properties

_jframe

protected JFrame _jframe

inRecursion

protected boolean inRecursion
Constructor Detail

PropSheetCategory

public PropSheetCategory(JFrame f)
Method Detail

getCategory

public String getCategory()

setCategory

public void setCategory(String cat)

addKeyComp

public Component addKeyComp(PropertyDescriptor pd)

updateKeysComps

public void updateKeysComps()

show

public void show(PropertyDescriptor pd)

hide

public void hide(PropertyDescriptor pd)

getMinimumSize

public Dimension getMinimumSize()
Overrides:
getMinimumSize in class JComponent

getPreferredSize

public Dimension getPreferredSize()
Overrides:
getPreferredSize in class JComponent

getSize

public Dimension getSize()
Overrides:
getSize in class Component

makeComp

public Component makeComp(PropertyDescriptor pd)
If I don't have a comp for a given property name, or the last comp is not suitable, then make a new AWT component (possibly a PropertyEditor).

setComponentValue

public void setComponentValue(PropertyDescriptor pd,
                              Component comp)
Display the value of a given property

addNotify

public void addNotify()
Overrides:
addNotify in class JComponent

canEdit

public boolean canEdit(Object item)
Overrides:
canEdit in class PropSheet

updateComponents

public void updateComponents()
Overrides:
updateComponents in class PropSheet

updateComponent

public void updateComponent(PropertyDescriptor pd)
Overrides:
updateComponent in class PropSheet