public class TPropertySheetPane
extends javax.swing.JPanel
You can use this pane in your application for a property sheet, or just use the property sheet directly without this panel. You can access the toolbar of this property sheet panel, change the predefined buttons or add more buttons on it.
Use a property sheet to create property sheet pane:
TDataBox box=new TDataBox(); TPropertySheet sheet=new TPropertySheet(); TPropertySheetPane pane=new TPropertySheetPane(sheet);
TPropertySheet
,
TDataBox
,
Serialized Formjavax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected javax.swing.AbstractButton |
categoryButton |
protected javax.swing.AbstractButton |
collapseButton |
protected twaver.table.TPropertySheetPane.Description |
description |
protected javax.swing.AbstractButton |
descriptionButton |
protected javax.swing.JPanel |
descriptionPane |
protected javax.swing.JScrollPane |
descriptionScrollPane |
protected javax.swing.JLabel |
descriptionTitle |
protected javax.swing.AbstractButton |
expandButton |
protected javax.swing.AbstractButton |
extraIndentButton |
protected boolean |
isIgnoreCaseSearch |
protected javax.swing.JTextField |
searchField |
protected TPropertySheet |
sheet |
protected javax.swing.AbstractButton |
singleRootVisibleButton |
protected javax.swing.AbstractButton |
sortButton |
protected TextAreaRenderer |
textAreaRenderer |
protected javax.swing.JToolBar |
toolbar |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
TPropertySheetPane(TPropertySheet sheet)
Create a property sheet pane with specified property sheet component.
|
TPropertySheetPane(TPropertySheet sheet,
boolean simpleStyle)
Create a property sheet pane with specified property sheet component.
|
Modifier and Type | Method and Description |
---|---|
protected javax.swing.AbstractButton |
createButton(java.lang.String name,
boolean isToggle) |
javax.swing.AbstractButton |
getCategoryButton()
Get "show/hide categories" button on the toolbar.
|
javax.swing.AbstractButton |
getCollapseButton()
Get "collapse all categories" button on the toolbar.
|
javax.swing.AbstractButton |
getDescriptionButton()
Get "show/hide property description" button on the toolbar.
|
javax.swing.text.JTextComponent |
getDescriptionComponent()
Get the text component which used to display property description.
|
javax.swing.JPanel |
getDescriptionPane()
Get the parent pane for description component.
|
javax.swing.table.TableCellRenderer |
getDescriptionRenderer(int rowIndex) |
javax.swing.JScrollPane |
getDescriptionScrollPane()
Get the scroll pane for description text component.
|
javax.swing.JLabel |
getDescriptionTitleLabel()
Get description title label component.
|
javax.swing.AbstractButton |
getExpandButton()
Get "expand all categories" button on the toolbar.
|
javax.swing.AbstractButton |
getExtraIndentButton()
Get "use extra indent" button on the toolbar.
|
TPropertySheet |
getPropertySheet()
Get property sheet of this panel.
|
javax.swing.JTextField |
getSearchField()
Get the search field component.
|
javax.swing.AbstractButton |
getSingleRootVisibleButton()
Get "show/hide single root category" button on the toolbar.
|
javax.swing.AbstractButton |
getSortButton()
Get "sort all properties" button on the toolbar.
|
javax.swing.JToolBar |
getToolbar()
Get the internal toolbar.
|
protected void |
initToolBar()
User can override this method to customize toolbar.
|
boolean |
isIgnoreCaseSearch()
Checks whether to ignore case when searching.
|
boolean |
isShowValueInDescription()
Checks whether to show element attribute value in description area.
|
protected boolean |
isVisible(ElementAttribute attribute) |
void |
setIgnoreCaseSearch(boolean isIgnoreCaseSearch)
Sets whether to ignore case when searching.
|
void |
setShowValueInDescription(boolean showValueInDescription)
Sets whether to show element attribute value in description area.
|
void |
setSimpleStyle(boolean simpleStyle) |
protected void |
updateButtonsState() |
void |
updateDescription() |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, 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, 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
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
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, 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, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected TextAreaRenderer textAreaRenderer
protected TPropertySheet sheet
protected boolean isIgnoreCaseSearch
protected javax.swing.JToolBar toolbar
protected javax.swing.AbstractButton categoryButton
protected javax.swing.AbstractButton sortButton
protected javax.swing.AbstractButton extraIndentButton
protected javax.swing.AbstractButton singleRootVisibleButton
protected javax.swing.AbstractButton descriptionButton
protected javax.swing.AbstractButton expandButton
protected javax.swing.AbstractButton collapseButton
protected javax.swing.JTextField searchField
protected javax.swing.JPanel descriptionPane
protected javax.swing.JLabel descriptionTitle
protected twaver.table.TPropertySheetPane.Description description
protected javax.swing.JScrollPane descriptionScrollPane
public TPropertySheetPane(TPropertySheet sheet)
sheet
- TPropertySheet a property sheetpublic TPropertySheetPane(TPropertySheet sheet, boolean simpleStyle)
sheet
- TPropertySheet a property sheetsimpleStyle
- boolean whether or not simple sytlepublic javax.swing.table.TableCellRenderer getDescriptionRenderer(int rowIndex)
protected boolean isVisible(ElementAttribute attribute)
public void updateDescription()
protected void initToolBar()
public void setSimpleStyle(boolean simpleStyle)
protected void updateButtonsState()
protected javax.swing.AbstractButton createButton(java.lang.String name, boolean isToggle)
public TPropertySheet getPropertySheet()
public javax.swing.AbstractButton getCategoryButton()
public javax.swing.AbstractButton getCollapseButton()
public javax.swing.AbstractButton getDescriptionButton()
public javax.swing.text.JTextComponent getDescriptionComponent()
public javax.swing.JPanel getDescriptionPane()
public javax.swing.JLabel getDescriptionTitleLabel()
public javax.swing.AbstractButton getExpandButton()
public javax.swing.AbstractButton getExtraIndentButton()
public javax.swing.AbstractButton getSingleRootVisibleButton()
public javax.swing.AbstractButton getSortButton()
public javax.swing.JToolBar getToolbar()
public javax.swing.JScrollPane getDescriptionScrollPane()
public javax.swing.JTextField getSearchField()
public boolean isIgnoreCaseSearch()
public void setIgnoreCaseSearch(boolean isIgnoreCaseSearch)
isIgnoreCaseSearch
- True to ignore case when searching, false otherwise.public boolean isShowValueInDescription()
public void setShowValueInDescription(boolean showValueInDescription)
showValueInDescription
- True to show element attribute value in description area, false otherwise.Copyright © 2002 - 2010 Serva Software. All Rights Reserved.