|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel com.alee.laf.panel.WebPanel com.alee.extended.panel.WebCollapsiblePane
public class WebCollapsiblePane
This extended components allows you to quickly create and manipulate a collapsible pane. Pane title, content and style can be modified in any way you like.
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 | |
---|---|
protected boolean |
animate
Whether animate transition between states or not. |
protected WebTimer |
animator
State change animation timer. |
protected javax.swing.ImageIcon |
cachedCollapseIcon
Cached expanded state icon. |
protected javax.swing.ImageIcon |
cachedDisabledCollapseIcon
Cached disabled expanded state icon. |
protected javax.swing.ImageIcon |
cachedDisabledExpandIcon
Cached disabled collapsed state icon. |
protected javax.swing.ImageIcon |
cachedExpandIcon
Cached collapsed state icon. |
protected javax.swing.ImageIcon |
collapseIcon
Expanded state icon. |
protected java.awt.Component |
content
Collapsible pane content. |
protected java.awt.Insets |
contentMargin
Content margin. |
protected WebPanel |
contentPanel
Content panel. |
protected boolean |
customTitle
Whether custom title component is set or not. |
protected WebButton |
expandButton
State change button. |
protected boolean |
expanded
Whether collapsible pane is expanded or not. |
protected javax.swing.ImageIcon |
expandIcon
Collapsed state icon. |
protected float |
expandSpeed
Collapsible pane expand and collapse speed. |
protected WebPanel |
headerPanel
Header panel. |
protected java.util.List<CollapsiblePaneListener> |
listeners
Collapsible pane listeners. |
protected boolean |
rotateStateIcon
Whether rotate state icon according to title pane position or not. |
protected boolean |
showStateIcon
Whether display state icon in title pane or not. |
protected DataProvider<java.lang.Boolean> |
stateChangeHandler
Handler that dynamically enable and disable collapsible pane state changes by providing according boolean value. |
protected java.awt.Insets |
stateIconMargin
State icon margin. |
protected int |
stateIconPostion
State icon position in title pane. |
protected java.awt.Component |
titleComponent
Title component. |
protected int |
titlePanePostion
Title pane position in collapsible pane. |
protected float |
transitionProgress
Current collapsible pane transition progress. |
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 javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
WebCollapsiblePane()
Constructs empty collapsible pane. |
|
WebCollapsiblePane(javax.swing.Icon icon,
java.lang.String title,
java.awt.Component content)
Constructs collapsible pane with specified title icon, text and content. |
|
WebCollapsiblePane(javax.swing.ImageIcon icon,
java.lang.String title)
Constructs empty collapsible pane with specified title icon and text. |
|
WebCollapsiblePane(java.lang.String title)
Constructs empty collapsible pane with specified title text. |
|
WebCollapsiblePane(java.lang.String title,
java.awt.Component content)
Constructs collapsible pane with specified title text and content. |
Method Summary | ||
---|---|---|
void |
addCollapsiblePaneListener(CollapsiblePaneListener listener)
Adds collapsible pane listener. |
|
protected void |
clearCachedCollapseIcons()
Clears cached expanded state icons. |
|
protected void |
clearCachedExpandIcons()
Clears cached collapsed state icons. |
|
boolean |
collapse()
Changes expanded state to collapsed and returns whether operation succeed or not. |
|
boolean |
collapse(boolean animate)
Changes expanded state to collapsed and returns whether operation succeed or not. |
|
protected javax.swing.JComponent |
createDefaultTitleComponent(javax.swing.Icon icon,
java.lang.String title)
Returns new default title component with specified icon and text. |
|
boolean |
expand()
Changes expanded state to expanded and returns whether operation succeed or not. |
|
boolean |
expand(boolean animate)
Changes expanded state to expanded and returns whether operation succeed or not. |
|
protected void |
finishCollapseAction()
Finishes collapse action. |
|
protected void |
finishExpandAction()
Finishes expand action. |
|
void |
fireCollapsed()
Notifies when collapsible pane finished collapsing. |
|
void |
fireCollapsing()
Notifies when collapsible pane starts to collapse. |
|
void |
fireExpanded()
Notifies when collapsible pane finished expanding. |
|
void |
fireExpanding()
Notifies when collapsible pane starts to expand. |
|
java.awt.Dimension |
getBasePreferredSize()
Returns preferred size without taking collapsible pane content into account. |
|
protected javax.swing.ImageIcon |
getCachedCollapseIcon()
Returns cached expanded state icon. |
|
protected javax.swing.ImageIcon |
getCachedDisabledCollapseIcon()
Returns cached disabled expanded state icon. |
|
protected javax.swing.ImageIcon |
getCachedDisabledExpandIcon()
Returns cached disabled collapsed state icon. |
|
protected javax.swing.ImageIcon |
getCachedExpandIcon()
Returns cached collapsed state icon. |
|
javax.swing.ImageIcon |
getCollapseIcon()
Returns expanded state icon. |
|
java.util.List<CollapsiblePaneListener> |
getCollapsiblePaneListeners()
Returns collapsible pane listeners. |
|
java.awt.Component |
getContent()
Returns collapsible pane content. |
|
java.awt.Insets |
getContentMargin()
Returns content margin. |
|
WebButton |
getExpandButton()
Returns state change button. |
|
javax.swing.ImageIcon |
getExpandIcon()
Returns collapsed state icon. |
|
WebPanel |
getHeaderPanel()
Returns header panel. |
|
javax.swing.Icon |
getIcon()
Returns default title component icon. |
|
DataProvider<java.lang.Boolean> |
getStateChangeHandler()
Returns handler that dynamically enable and disable collapsible pane state changes by providing according boolean value. |
|
java.awt.Insets |
getStateIconMargin()
Returns state icon margin. |
|
int |
getStateIconPostion()
Returns state icon position in title pane. |
|
java.lang.String |
getTitle()
Returns default title component text. |
|
java.awt.Component |
getTitleComponent()
Returns title component. |
|
int |
getTitlePanePostion()
Returns title pane position in collapsible pane. |
|
float |
getTransitionProgress()
Returns current collapsible pane transition progress. |
|
boolean |
invertExpandState()
Changes expanded state to opposite and returns whether operation succeed or not. |
|
boolean |
invertExpandState(boolean animate)
Changes expanded state to opposite and returns whether operation succeed or not. |
|
boolean |
isAnimate()
Returns whether animate transition between states or not. |
|
boolean |
isAnimating()
Returns whether collapsible pane is performing animated transition at the moment or not. |
|
boolean |
isExpanded()
Returns whether this collapsible pane is expanded or not. |
|
boolean |
isLanguageSet()
Returns whether this component registered in LanguageManager or not. |
|
boolean |
isRotateStateIcon()
Returns whether rotate state icon according to title pane position or not. |
|
boolean |
isShowStateIcon()
Returns whether display state icon in title pane or not. |
|
boolean |
isStateChangeEnabled()
Returns whether collapsible pane state change is enabled or not. |
|
void |
loadSettings()
Loads saved settings into the component if it is registered. |
|
void |
registerSettings(SettingsProcessor settingsProcessor)
Registers component for settings auto-save. |
|
void |
registerSettings(java.lang.String key)
Registers component for settings auto-save. |
|
void |
registerSettings(java.lang.String key,
boolean loadInitialSettings,
boolean applySettingsChanges)
Registers component for settings auto-save. |
|
|
registerSettings(java.lang.String key,
java.lang.Class<T> defaultValueClass)
Registers component for settings auto-save. |
|
|
registerSettings(java.lang.String key,
java.lang.Class<T> defaultValueClass,
boolean loadInitialSettings,
boolean applySettingsChanges)
Registers component for settings auto-save. |
|
void |
registerSettings(java.lang.String key,
java.lang.Object defaultValue)
Registers component for settings auto-save. |
|
void |
registerSettings(java.lang.String key,
java.lang.Object defaultValue,
boolean loadInitialSettings,
boolean applySettingsChanges)
Registers component for settings auto-save. |
|
void |
registerSettings(java.lang.String group,
java.lang.String key)
Registers component for settings auto-save. |
|
|
registerSettings(java.lang.String group,
java.lang.String key,
java.lang.Class<T> defaultValueClass)
Registers component for settings auto-save. |
|
|
registerSettings(java.lang.String group,
java.lang.String key,
java.lang.Class<T> defaultValueClass,
boolean loadInitialSettings,
boolean applySettingsChanges)
Registers component for settings auto-save. |
|
void |
registerSettings(java.lang.String group,
java.lang.String key,
java.lang.Object defaultValue)
Registers component for settings auto-save. |
|
void |
registerSettings(java.lang.String group,
java.lang.String key,
java.lang.Object defaultValue,
boolean loadInitialSettings,
boolean applySettingsChanges)
Registers component for settings auto-save. |
|
void |
removeCollapsiblePaneListener(CollapsiblePaneListener listener)
Removes collapsible pane listener. |
|
void |
removeLanguage()
Unregisters component from LanguageManager. |
|
void |
removeLanguageUpdater()
Unregisters any custom language updater set for this component. |
|
void |
saveSettings()
Saves component settings. |
|
void |
setAnimate(boolean animate)
Sets whether animate transition between states or not |
|
void |
setCollapseIcon(javax.swing.ImageIcon collapseIcon)
Sets expanded state icon. |
|
void |
setCollapsiblePaneListeners(java.util.List<CollapsiblePaneListener> listeners)
Sets collapsible pane listeners. |
|
void |
setContent(java.awt.Component content)
Sets collapsible pane content. |
|
void |
setContentMargin(java.awt.Insets margin)
Sets content margin. |
|
void |
setContentMargin(int margin)
Sets content margin. |
|
void |
setContentMargin(int top,
int left,
int bottom,
int right)
Sets content margin. |
|
boolean |
setExpanded(boolean expanded)
Changes expanded state to specified one and returns whether operation succeed or not. |
|
boolean |
setExpanded(boolean expanded,
boolean animate)
Changes expanded state to specified one and returns whether operation succeed or not. |
|
void |
setExpandIcon(javax.swing.ImageIcon expandIcon)
Sets collapsed state icon. |
|
void |
setIcon(javax.swing.Icon icon)
Sets default title component icon. |
|
void |
setLanguage(java.lang.String key,
java.lang.Object... data)
Registers component in LanguageManager under specified key and with specified formatting data. |
|
void |
setLanguageUpdater(LanguageUpdater updater)
Registers custom language updater for this component. |
|
void |
setRotateStateIcon(boolean rotateStateIcon)
Sets whether rotate state icon according to title pane position or not. |
|
void |
setShowStateIcon(boolean showStateIcon)
Sets whether display state icon in title pane or not. |
|
void |
setStateChangeHandler(DataProvider<java.lang.Boolean> stateChangeHandler)
Sets handler that dynamically enable and disable collapsible pane state changes by providing according boolean value. |
|
void |
setStateIconMargin(java.awt.Insets margin)
Sets state icon margin. |
|
void |
setStateIconPostion(int stateIconPostion)
Sets state icon position in title pane. |
|
protected void |
setStateIcons()
Installs state icons into state change button. |
|
void |
setTitle(java.lang.String title)
Sets default title component text. |
|
void |
setTitleAlignment(int alignment)
Sets default title component text alignment. |
|
void |
setTitleComponent(java.awt.Component titleComponent)
Sets custom title component. |
|
void |
setTitlePanePostion(int titlePanePostion)
Sets title pane position in collapsible pane. |
|
protected void |
stopAnimation()
Stops state transition animation. |
|
protected void |
takeFocus()
Transfers application focus to this collapsible pane. |
|
void |
unregisterSettings()
Unregisters component from settings auto-save. |
|
protected void |
updateDefaultTitleBorder()
Updates default title component border. |
|
protected void |
updateDefaultTitleComponent()
Updates default title component. |
|
protected void |
updateDefaultTitleComponent(javax.swing.Icon icon,
java.lang.String title)
Updates default title component with the specified title icon and text. |
|
protected void |
updateHeaderPosition()
Updates header panel position. |
|
protected void |
updateHeaderSides()
Updates header panel sides style. |
|
void |
updateLanguage(java.lang.Object... data)
Updates component language and formatting data. |
|
void |
updateLanguage(java.lang.String key,
java.lang.Object... data)
Changes component language key and updates its language and formatting data. |
|
protected void |
updateStateIconMargin()
Updates state icon margin. |
|
protected void |
updateStateIconPosition()
Updates state icon position. |
|
protected void |
updateStateIcons()
Updates state icons. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI |
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, 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, 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, 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, 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, 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, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.alee.utils.laf.ShapeProvider |
---|
provideShape |
Field Detail |
---|
protected boolean animate
protected javax.swing.ImageIcon expandIcon
protected javax.swing.ImageIcon collapseIcon
protected java.awt.Insets stateIconMargin
protected boolean rotateStateIcon
protected boolean showStateIcon
protected int stateIconPostion
protected int titlePanePostion
protected java.awt.Insets contentMargin
protected java.util.List<CollapsiblePaneListener> listeners
protected javax.swing.ImageIcon cachedExpandIcon
protected javax.swing.ImageIcon cachedDisabledExpandIcon
protected javax.swing.ImageIcon cachedCollapseIcon
protected javax.swing.ImageIcon cachedDisabledCollapseIcon
protected DataProvider<java.lang.Boolean> stateChangeHandler
protected boolean expanded
protected float transitionProgress
protected float expandSpeed
protected WebTimer animator
protected boolean customTitle
protected WebPanel headerPanel
protected java.awt.Component titleComponent
protected WebButton expandButton
protected WebPanel contentPanel
protected java.awt.Component content
Constructor Detail |
---|
public WebCollapsiblePane()
public WebCollapsiblePane(java.lang.String title)
title
- collapsible pane title textpublic WebCollapsiblePane(javax.swing.ImageIcon icon, java.lang.String title)
icon
- collapsible pane title icontitle
- collapsible pane title textpublic WebCollapsiblePane(java.lang.String title, java.awt.Component content)
title
- collapsible pane title textcontent
- collapsible pane contentpublic WebCollapsiblePane(javax.swing.Icon icon, java.lang.String title, java.awt.Component content)
icon
- collapsible pane title icontitle
- collapsible pane title textcontent
- collapsible pane contentMethod Detail |
---|
protected void takeFocus()
protected void updateDefaultTitleComponent()
protected void updateDefaultTitleComponent(javax.swing.Icon icon, java.lang.String title)
icon
- collapsible pane title icontitle
- collapsible pane title textprotected void updateDefaultTitleBorder()
protected void updateHeaderPosition()
protected void updateHeaderSides()
protected void updateStateIconPosition()
protected void updateStateIconMargin()
protected javax.swing.JComponent createDefaultTitleComponent(javax.swing.Icon icon, java.lang.String title)
title
- collapsible pane title texticon
- collapsible pane title icon
public DataProvider<java.lang.Boolean> getStateChangeHandler()
public void setStateChangeHandler(DataProvider<java.lang.Boolean> stateChangeHandler)
stateChangeHandler
- new state change handlerpublic boolean isStateChangeEnabled()
public boolean isAnimating()
public boolean invertExpandState()
public boolean invertExpandState(boolean animate)
animate
- whether animate state change transition or not
public boolean isExpanded()
public boolean setExpanded(boolean expanded)
public boolean setExpanded(boolean expanded, boolean animate)
animate
- whether animate state change transition or not
public boolean collapse()
public boolean collapse(boolean animate)
animate
- whether animate state change transition or not
protected void finishCollapseAction()
public boolean expand()
public boolean expand(boolean animate)
animate
- whether animate state change transition or not
protected void finishExpandAction()
protected void stopAnimation()
public int getTitlePanePostion()
public void setTitlePanePostion(int titlePanePostion)
titlePanePostion
- new title pane position in collapsible panepublic java.awt.Insets getContentMargin()
public void setContentMargin(java.awt.Insets margin)
margin
- content marginpublic void setContentMargin(int top, int left, int bottom, int right)
top
- top content marginleft
- left content marginbottom
- bottom content marginright
- right content marginpublic void setContentMargin(int margin)
margin
- content marginpublic boolean isAnimate()
public void setAnimate(boolean animate)
animate
- whether animate transition between states or notpublic javax.swing.Icon getIcon()
public void setIcon(javax.swing.Icon icon)
icon
- new default title component iconpublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- new default title component textpublic void setTitleAlignment(int alignment)
alignment
- new default title component text alignmentpublic javax.swing.ImageIcon getCollapseIcon()
public void setCollapseIcon(javax.swing.ImageIcon collapseIcon)
collapseIcon
- new expanded state iconpublic javax.swing.ImageIcon getExpandIcon()
public void setExpandIcon(javax.swing.ImageIcon expandIcon)
expandIcon
- new collapsed state iconpublic java.awt.Insets getStateIconMargin()
public void setStateIconMargin(java.awt.Insets margin)
margin
- new state icon marginpublic boolean isRotateStateIcon()
public void setRotateStateIcon(boolean rotateStateIcon)
rotateStateIcon
- whether rotate state icon according to title pane position or notpublic boolean isShowStateIcon()
public void setShowStateIcon(boolean showStateIcon)
showStateIcon
- whether display state icon in title pane or notpublic int getStateIconPostion()
public void setStateIconPostion(int stateIconPostion)
stateIconPostion
- new state icon position in title paneprotected void updateStateIcons()
protected void setStateIcons()
protected void clearCachedCollapseIcons()
protected javax.swing.ImageIcon getCachedCollapseIcon()
protected javax.swing.ImageIcon getCachedDisabledCollapseIcon()
protected void clearCachedExpandIcons()
protected javax.swing.ImageIcon getCachedExpandIcon()
protected javax.swing.ImageIcon getCachedDisabledExpandIcon()
public WebPanel getHeaderPanel()
public WebButton getExpandButton()
public java.awt.Component getTitleComponent()
public void setTitleComponent(java.awt.Component titleComponent)
titleComponent
- new custom title componentpublic java.awt.Component getContent()
public void setContent(java.awt.Component content)
content
- new collapsible pane contentpublic java.util.List<CollapsiblePaneListener> getCollapsiblePaneListeners()
public void setCollapsiblePaneListeners(java.util.List<CollapsiblePaneListener> listeners)
listeners
- new collapsible pane listenerspublic void addCollapsiblePaneListener(CollapsiblePaneListener listener)
listener
- collapsible pane listener to addpublic void removeCollapsiblePaneListener(CollapsiblePaneListener listener)
listener
- collapsible pane listener to removepublic void fireExpanding()
public void fireExpanded()
public void fireCollapsing()
public void fireCollapsed()
public float getTransitionProgress()
public java.awt.Dimension getBasePreferredSize()
public void setLanguage(java.lang.String key, java.lang.Object... data)
setLanguage
in interface LanguageMethods
key
- language record keydata
- formatting datapublic void updateLanguage(java.lang.Object... data)
updateLanguage
in interface LanguageMethods
data
- new formatting datapublic void updateLanguage(java.lang.String key, java.lang.Object... data)
updateLanguage
in interface LanguageMethods
key
- new language keydata
- new formatting datapublic void removeLanguage()
removeLanguage
in interface LanguageMethods
public boolean isLanguageSet()
isLanguageSet
in interface LanguageMethods
public void setLanguageUpdater(LanguageUpdater updater)
setLanguageUpdater
in interface LanguageMethods
updater
- component language updaterpublic void removeLanguageUpdater()
removeLanguageUpdater
in interface LanguageMethods
public void registerSettings(java.lang.String key)
registerSettings
in interface SettingsMethods
key
- component settings keypublic <T extends DefaultValue> void registerSettings(java.lang.String key, java.lang.Class<T> defaultValueClass)
registerSettings
in interface SettingsMethods
T
- default value typekey
- component settings keydefaultValueClass
- component default value classDefaultValue
public void registerSettings(java.lang.String key, java.lang.Object defaultValue)
registerSettings
in interface SettingsMethods
key
- component settings keydefaultValue
- component default valuepublic void registerSettings(java.lang.String group, java.lang.String key)
registerSettings
in interface SettingsMethods
group
- component settings groupkey
- component settings keypublic <T extends DefaultValue> void registerSettings(java.lang.String group, java.lang.String key, java.lang.Class<T> defaultValueClass)
registerSettings
in interface SettingsMethods
T
- default value typegroup
- component settings groupkey
- component settings keydefaultValueClass
- component default value classDefaultValue
public void registerSettings(java.lang.String group, java.lang.String key, java.lang.Object defaultValue)
registerSettings
in interface SettingsMethods
group
- component settings groupkey
- component settings keydefaultValue
- component default valuepublic void registerSettings(java.lang.String key, boolean loadInitialSettings, boolean applySettingsChanges)
registerSettings
in interface SettingsMethods
key
- component settings keyloadInitialSettings
- whether to load initial available settings into the component or notapplySettingsChanges
- whether to apply settings changes to the component or notpublic <T extends DefaultValue> void registerSettings(java.lang.String key, java.lang.Class<T> defaultValueClass, boolean loadInitialSettings, boolean applySettingsChanges)
registerSettings
in interface SettingsMethods
T
- default value typekey
- component settings keydefaultValueClass
- component default value classloadInitialSettings
- whether to load initial available settings into the component or notapplySettingsChanges
- whether to apply settings changes to the component or notDefaultValue
public void registerSettings(java.lang.String key, java.lang.Object defaultValue, boolean loadInitialSettings, boolean applySettingsChanges)
registerSettings
in interface SettingsMethods
key
- component settings keydefaultValue
- component default valueloadInitialSettings
- whether to load initial available settings into the component or notapplySettingsChanges
- whether to apply settings changes to the component or notpublic <T extends DefaultValue> void registerSettings(java.lang.String group, java.lang.String key, java.lang.Class<T> defaultValueClass, boolean loadInitialSettings, boolean applySettingsChanges)
registerSettings
in interface SettingsMethods
T
- default value typegroup
- component settings groupkey
- component settings keydefaultValueClass
- component default value classloadInitialSettings
- whether to load initial available settings into the component or notapplySettingsChanges
- whether to apply settings changes to the component or notDefaultValue
public void registerSettings(java.lang.String group, java.lang.String key, java.lang.Object defaultValue, boolean loadInitialSettings, boolean applySettingsChanges)
registerSettings
in interface SettingsMethods
group
- component settings groupkey
- component settings keydefaultValue
- component default valueloadInitialSettings
- whether to load initial available settings into the component or notapplySettingsChanges
- whether to apply settings changes to the component or notpublic void registerSettings(SettingsProcessor settingsProcessor)
registerSettings
in interface SettingsMethods
settingsProcessor
- component settings processorpublic void unregisterSettings()
unregisterSettings
in interface SettingsMethods
public void loadSettings()
loadSettings
in interface SettingsMethods
public void saveSettings()
saveSettings
in interface SettingsMethods
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |