com.metamatrix.toolbox.ui.widget.property
Class PropertiedObjectPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by com.metamatrix.toolbox.ui.widget.property.PropertiedObjectPanel
All Implemented Interfaces:
UIConstants, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class PropertiedObjectPanel
extends javax.swing.JPanel
implements UIConstants

Since:
2.0
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, 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 com.metamatrix.toolbox.ui.UIConstants
DATE_FORMAT_PROPERTY, SPACER_HORIZONTAL_LENGTH_PROPERTY, WINDOW_BORDER_PROPERTY
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
PropertiedObjectPanel(PropertiedObjectEditor editor, Encryptor encryptor)
          Constructs and returns an instance of this class using itself as a transaction source.
PropertiedObjectPanel(PropertiedObjectEditor editor, Encryptor encryptor, java.lang.Object transactionSource)
          Constructs and returns an instance of this class.
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Registers the specified listener to be notified whenever the value of one of the displayed components changes.
 void addPropertySelectionListener(PropertySelectionListener listener)
           
 void clear()
          Clears the panel contents.
 void clearHiddenPropertyDefinitions()
          Clear the list of properties not to display.
 void createComponent()
          Construct the visual components for this object.
protected  javax.swing.JComponent createComponentFromPropertyDefinition(PropertyDefinition def, java.lang.Object val, boolean isReadOnly, int ndx, PropertyDefinitionLabel nameComp)
           
protected  javax.swing.JComponent[][] createModelFromProperties()
          Creates and returns the 2D object array table model for the properties of the MetadataEntity.
protected  java.util.List filterPropertyDefinitionList(java.util.Collection defs)
          Build a modifiable List of the specified PropertyDefintions based on if the configurable settings for this panel.
 java.util.List getInvalidDefinitions()
          Returns a List of the PropertyDefinitions for which the value columns displayed in the panel are invalid for this PropertiedObject.
 int getNameColumnHeaderWidth()
           
 PropertiedObject getPropertiedObject()
           
 PropertyChangeAdapter getPropertyChangeAdapter()
           
 PropertyComponentFactory getPropertyComponentFactory()
           
 java.awt.Component[] getPropertyComponents()
           
 javax.swing.JScrollPane getScrollPane()
           
 boolean getShowExpertProperties()
           
 boolean getShowHiddenProperties()
           
 boolean getShowInvalidProperties()
           
 boolean getShowOptionalProperties()
           
 boolean getShowRequiredProperties()
           
protected  boolean hasValidValue(PropertyDefinition def, java.lang.Object value)
           
 boolean isEditing()
          Determines if this panel is in the act of editing a property.
 boolean isFocusCycleRoot()
          Indicates whether this panel is acting as a root focus handler when cycling through fields using [Tab]/[Shift-Tab].
 boolean isReadOnlyForced()
          Indicates whether read-only state is currently forced
 void refreshDisplay()
          Refresh the panel's displayed contents.
protected  void refreshDisplay(boolean defaultValuesUsed)
          Refresh the panel's displayed contents.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Unregisters the specified listener from getting notifications of value changes within the component displaying values for one of the PropertiedObject's properties.
 void removePropertySelectionListener(PropertySelectionListener listener)
           
 void requestFocus()
          Overridden to call requestFocus on the component containing the first property value.
 void resetNameColumnHeaderWidth(boolean refreshImmediately)
          Resets the width of the header for the name column to it's default size and refreshes the display.
protected  void resizeNameColumn()
          Resizes the name column to exactly fit its labels (including the header label) plus a small gap.
 void setBounds(int x, int y, int width, int height)
           
 void setColumnHeaderNames(java.lang.String nameColumnName, java.lang.String valueColumnName)
          Sets each column header name to the respective specified name, or to the default value if the name is null.
 void setFocusCycleRoot(boolean isFocusCycleRoot)
          Sets whether this panel should act as a root focus handler when cycling through fields using [Tab]/[Shift-Tab].
 void setHiddenPropertyDefinitions(java.util.Collection propertiesToFilterOut)
          Sets the properties that should not be shown.
 void setNameColumnHeaderWidth(int width)
          Sets the width of the header for the name column.
 void setPropertiedObject(PropertiedObject propObj)
          Sets this panel to display the properties for the specified PropertiedObject.
 void setPropertiedObject(PropertiedObject propObj, java.util.List propertiesToDisplay)
          Sets this panel to display the specified properties for the specified PropertiedObject.
 void setPropertiedObject(PropertiedObject propObj, PropertiedObjectEditor editor)
          Sets this panel to display the properties for the specified PropertiedObject.
 void setPropertiedObject(PropertiedObject propObj, PropertiedObjectEditor editor, java.util.List propertiesToDisplay)
          Sets the PropertiedObject whose properties are to be shown to the specified object.
 void setPropertyChangeAdapter(PropertyChangeAdapter adapter)
          Sets the PropertyChangeAdapter.
 void setReadOnlyForced(boolean forced)
          Sets whether properties should be treated as read-only regardless of their actual read-only status.
 void setShowColumnHeaders(boolean showHeaders)
          Sets whether the name and value column headers should be shown.
 void setShowExpertProperties(boolean showExpert)
          Sets whether properties marked as expert should be shown.
 void setShowHiddenProperties(boolean showHidden)
          Sets whether properties marked as hidden should be shown.
 void setShowInvalidProperties(boolean showInvalid)
          Sets whether properties with invalid values should be shown with a special indication.
 void setShowOptionalProperties(boolean show)
          Sets whether properties not marked as required (i.e., optional properties) should be shown.
 void setShowRequiredProperties(boolean showRequired)
          Sets whether properties marked as required should be shown with a special indication.
 void setShowToolTips(boolean showToolTips)
          Sets whether this panel should display ToolTips for property values.
protected  void sizeColumnsToFitViewport(javax.swing.JScrollPane scroller)
          Attempts to resize the columns when the vertical scroll bar first appears in order to eliminate the horizontal scroll bar.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, 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, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, 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
 

Constructor Detail

PropertiedObjectPanel

public PropertiedObjectPanel(PropertiedObjectEditor editor,
                             Encryptor encryptor)
Constructs and returns an instance of this class using itself as a transaction source.

Since:
2.0

PropertiedObjectPanel

public PropertiedObjectPanel(PropertiedObjectEditor editor,
                             Encryptor encryptor,
                             java.lang.Object transactionSource)
Constructs and returns an instance of this class.

Since:
2.0
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Registers the specified listener to be notified whenever the value of one of the displayed components changes. An event will be fired to the listener regardless of whether the new value if valid. Since the property whose value the component is displaying is only changed if the value if valid, the PropertiedObjectEditor's getValue may return the either the new or old value depending on the validity of the new value. This method only works if a call has NOT been made to the setPropertyChangeAdapter method with a null adapter parameter.

Overrides:
addPropertyChangeListener in class java.awt.Container
Parameters:
listener - The PropertyChangeListener
Since:
2.0

addPropertySelectionListener

public void addPropertySelectionListener(PropertySelectionListener listener)
Since:
2.0

clear

public void clear()
Clears the panel contents.

Since:
2.0

clearHiddenPropertyDefinitions

public void clearHiddenPropertyDefinitions()
Clear the list of properties not to display.

Since:
2.0

createComponent

public void createComponent()
Construct the visual components for this object.

Since:
2.0

createComponentFromPropertyDefinition

protected javax.swing.JComponent createComponentFromPropertyDefinition(PropertyDefinition def,
                                                                       java.lang.Object val,
                                                                       boolean isReadOnly,
                                                                       int ndx,
                                                                       PropertyDefinitionLabel nameComp)
Since:
2.1

createModelFromProperties

protected javax.swing.JComponent[][] createModelFromProperties()
Creates and returns the 2D object array table model for the properties of the MetadataEntity. The depth of the array is exactly 2, where column 0 is filled with PropertyDefinitions from the specified MetadataEntity, and column 1 contains JComponents initialized to display and edit the value of each PropertyDefinition for the entity.

Since:
2.0

filterPropertyDefinitionList

protected java.util.List filterPropertyDefinitionList(java.util.Collection defs)
Build a modifiable List of the specified PropertyDefintions based on if the configurable settings for this panel.

Since:
2.0

getInvalidDefinitions

public java.util.List getInvalidDefinitions()
Returns a List of the PropertyDefinitions for which the value columns displayed in the panel are invalid for this PropertiedObject. Typically these will be required properties that have not been set.

Returns:
an ordered List of PropertyDefinition instances, empty if none are invalid.
Since:
2.0

getNameColumnHeaderWidth

public int getNameColumnHeaderWidth()
Returns:
The current width of the header for the name column.
Since:
2.0

getPropertiedObject

public PropertiedObject getPropertiedObject()
Returns:
The current PropertiedObject.
Since:
2.0

getPropertyChangeAdapter

public PropertyChangeAdapter getPropertyChangeAdapter()
Returns:
The current PropertyChangeAdapter.
Since:
2.0

getPropertyComponentFactory

public PropertyComponentFactory getPropertyComponentFactory()
Returns:
The current PropertyComponentFactory.
Since:
2.0

getPropertyComponents

public java.awt.Component[] getPropertyComponents()
Returns:
An array of all the components used to display/edit each of the current propertied object's property values
Since:
2.0

getScrollPane

public javax.swing.JScrollPane getScrollPane()
Since:
3.0

getShowExpertProperties

public boolean getShowExpertProperties()
Since:
2.0

getShowHiddenProperties

public boolean getShowHiddenProperties()
Since:
2.0

getShowInvalidProperties

public boolean getShowInvalidProperties()
Since:
2.0

getShowOptionalProperties

public boolean getShowOptionalProperties()
Since:
2.0

getShowRequiredProperties

public boolean getShowRequiredProperties()
Since:
2.0

hasValidValue

protected boolean hasValidValue(PropertyDefinition def,
                                java.lang.Object value)
Since:
2.0

isEditing

public boolean isEditing()
Determines if this panel is in the act of editing a property. This method should be used to determine if it is safe to use the object displayed in the panel. Since there may be changes pending on the object immediately after focus is obtained by another component (by pressing a JButton, for example), it is not safe to use this panel's object until this method returns false. The following is an example of how to use isEditing when the PropertiedObject will be used in response to a button's ActionEvent:
    // button listener method that will use the currently displayed PropertiedObject
    public void actionPerformed(final ActionEvent e) {
        if (propertiedObjectPanel.isEditing()) {
            // the panel has not finished setting values on the PropertiedObject
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    // call back on this method and try again
                    actionPerformed(e);
                }
            });
            return;
        }
        // the PropertiedObject is safe to use
    }
    

Returns:
True if a property is currently being edited

isFocusCycleRoot

public boolean isFocusCycleRoot()
Indicates whether this panel is acting as a root focus handler when cycling through fields using [Tab]/[Shift-Tab]. If so, pressing the [Tab] key while on the last focusable field will cause focus to be transferred to the first focusable field in this panel.

Overrides:
isFocusCycleRoot in class java.awt.Container
Returns:
True if this panel is acting as a root focus handler
Since:
2.1

isReadOnlyForced

public boolean isReadOnlyForced()
Indicates whether read-only state is currently forced

Returns:
True if read-only is forced; i.e. setReadOnlyForced(true) called
Since:
3.0

refreshDisplay

public void refreshDisplay()
Refresh the panel's displayed contents.

Since:
2.0

refreshDisplay

protected void refreshDisplay(boolean defaultValuesUsed)
Refresh the panel's displayed contents.

Since:
2.0

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Unregisters the specified listener from getting notifications of value changes within the component displaying values for one of the PropertiedObject's properties.

Overrides:
removePropertyChangeListener in class java.awt.Component
Parameters:
listener - The PropertyChangeListener currently registered to receive events
Since:
2.0

removePropertySelectionListener

public void removePropertySelectionListener(PropertySelectionListener listener)
Since:
2.0

requestFocus

public void requestFocus()
Overridden to call requestFocus on the component containing the first property value.

Overrides:
requestFocus in class javax.swing.JComponent
Since:
2.0

resizeNameColumn

protected void resizeNameColumn()
Resizes the name column to exactly fit its labels (including the header label) plus a small gap.

Since:
2.0

setBounds

public void setBounds(int x,
                      int y,
                      int width,
                      int height)
Overrides:
setBounds in class java.awt.Component
Since:
2.0

setColumnHeaderNames

public void setColumnHeaderNames(java.lang.String nameColumnName,
                                 java.lang.String valueColumnName)
Sets each column header name to the respective specified name, or to the default value if the name is null.

Parameters:
nameColumnName - The new name of the name column
valueColumnName - The new name of the value column
Since:
2.0

setFocusCycleRoot

public void setFocusCycleRoot(boolean isFocusCycleRoot)
Sets whether this panel should act as a root focus handler when cycling through fields using [Tab]/[Shift-Tab]. If so, pressing the [Tab] key while on the last focusable field will cause focus to be transferred to the first focusable field in this panel.

Overrides:
setFocusCycleRoot in class java.awt.Container
Parameters:
isFocusCycleRoot - True if this panel should act as a focus cycle root
Since:
2.1

setHiddenPropertyDefinitions

public void setHiddenPropertyDefinitions(java.util.Collection propertiesToFilterOut)
Sets the properties that should not be shown.

Parameters:
propertiesToFilterOut - The Collection of PropertyDefinitions that should not be shown
Since:
2.0

setNameColumnHeaderWidth

public void setNameColumnHeaderWidth(int width)
Sets the width of the header for the name column. Change will not take effect until setPropertiedObject is called.

Parameters:
width - The width of the header for the name column. If width is set to 0, the name column width will be reset to fit the name column data.
Since:
2.0

resetNameColumnHeaderWidth

public void resetNameColumnHeaderWidth(boolean refreshImmediately)
Resets the width of the header for the name column to it's default size and refreshes the display.

Parameters:
refreshImmediately - if true, will cause the panel to refresh it's layout. Use false when your code will be calling setPropertiedObject() to avoid unnecessary re- generation of the panel's components.
Since:
3.0

setPropertiedObject

public void setPropertiedObject(PropertiedObject propObj)
Sets this panel to display the properties for the specified PropertiedObject.

Parameters:
propObj - the PropertiedObject to display and edit in this panel.
Since:
2.0

setPropertiedObject

public void setPropertiedObject(PropertiedObject propObj,
                                PropertiedObjectEditor editor)
Sets this panel to display the properties for the specified PropertiedObject.

Parameters:
propObj - the PropertiedObject to display and edit in this panel.
editor - the PropertiedObjectEditor to use for displaying and editing.
Since:
2.0

setPropertiedObject

public void setPropertiedObject(PropertiedObject propObj,
                                java.util.List propertiesToDisplay)
Sets this panel to display the specified properties for the specified PropertiedObject.

Parameters:
propObj - the PropertiedObject to display and edit in this panel. the panel will display.
definitionsToDisplay - a subset of the PropertyDefinitions for this PropertiedObject that
Since:
2.0

setPropertiedObject

public void setPropertiedObject(PropertiedObject propObj,
                                PropertiedObjectEditor editor,
                                java.util.List propertiesToDisplay)
Sets the PropertiedObject whose properties are to be shown to the specified object.

Parameters:
propObj - The PropertiedObject to display and edit in this panel.
editor - The PropertiedObjectEditor to use for displaying and editing.
propertiesToDisplay - An ordered List of PropertyDefinitions for the properties to be shown for the PropertiedObject
Since:
2.0

setPropertyChangeAdapter

public void setPropertyChangeAdapter(PropertyChangeAdapter adapter)
Sets the PropertyChangeAdapter. A default PropertyChangeAdapter is created automatically, so it is not necessary to call this method unless you wish to redirect this panel's change events to a different adapter.

Parameters:
adapter - The new PropertyChangeAdapter
Since:
2.0

setReadOnlyForced

public void setReadOnlyForced(boolean forced)
Sets whether properties should be treated as read-only regardless of their actual read-only status. Pasing false to this method will cause the properties' actual read-only status to be honored.

Parameters:
readOnly - True if all properties should be treated as read-only. The default is false.
Since:
2.0

setShowColumnHeaders

public void setShowColumnHeaders(boolean showHeaders)
Sets whether the name and value column headers should be shown.

Parameters:
showHeaders - True if column headers should be shown. The default is true.
Since:
2.0

setShowExpertProperties

public void setShowExpertProperties(boolean showExpert)
Sets whether properties marked as expert should be shown.

Parameters:
showExpert - True if expert properties should be shown. The default is false.
Since:
2.0

setShowHiddenProperties

public void setShowHiddenProperties(boolean showHidden)
Sets whether properties marked as hidden should be shown.

Parameters:
showHidden - True if hidden properties should be shown. The default is false.
Since:
2.0

setShowInvalidProperties

public void setShowInvalidProperties(boolean showInvalid)
Sets whether properties with invalid values should be shown with a special indication.

Parameters:
showInvalid - True if invalid properties should be shown. The default is false.
Since:
2.0

setShowOptionalProperties

public void setShowOptionalProperties(boolean show)
Sets whether properties not marked as required (i.e., optional properties) should be shown.

Parameters:
show - True if optional properties should be shown. The default is true.
Since:
2.0

setShowRequiredProperties

public void setShowRequiredProperties(boolean showRequired)
Sets whether properties marked as required should be shown with a special indication.

Parameters:
showRequired - True if required properties should be shown. The default is false.
Since:
2.0

setShowToolTips

public void setShowToolTips(boolean showToolTips)
Sets whether this panel should display ToolTips for property values.

Parameters:
showToolTips - True if ToolTips should be shown. The default is true.
Since:
2.0

sizeColumnsToFitViewport

protected void sizeColumnsToFitViewport(javax.swing.JScrollPane scroller)
Attempts to resize the columns when the vertical scroll bar first appears in order to eliminate the horizontal scroll bar.

Since:
2.1


Copyright © 2009. All Rights Reserved.