|
||||||||||
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.WebAccordion
public class WebAccordion
Accordion groups separate collapsible panes into a single component. It also has a few useful features like unified styling and selection mode.
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 AccordionStyle |
accordionStyle
Accordion style. |
protected boolean |
animate
Whether animate transition between states or not. |
protected javax.swing.ImageIcon |
collapseIcon
Expanded state icon. |
protected javax.swing.ImageIcon |
expandIcon
Collapsed state icon. |
protected boolean |
fillSpace
Whether accordion must fill all available space with expanded panes or not. |
protected int |
gap
Gap between panes for separated accordion style. |
protected WebCollapsiblePane |
lastExpanded
Index of last expanded collapsible pane. |
protected java.util.List<AccordionListener> |
listeners
Accordion collapsible pane listeners. |
protected boolean |
multiplySelectionAllowed
Whether multiply expanded panes are allowed or not. |
protected int |
orientation
Accordion orientation. |
protected java.util.List<WebCollapsiblePane> |
panes
Accordion collapsible panes. |
protected java.util.List<CollapsiblePaneListener> |
stateListeners
Accordion collapsible pane state listeners. |
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 | |
---|---|
WebAccordion()
Constructs empty accordion with default style. |
|
WebAccordion(AccordionStyle style)
Constructs empty accordion with the specified style. |
Method Summary | ||
---|---|---|
void |
addAccordionListener(AccordionListener listener)
Adds accordion listener. |
|
WebCollapsiblePane |
addPane(java.awt.Component title,
java.awt.Component content)
Adds new collapsible pane into accordion with the specified title component and content. |
|
WebCollapsiblePane |
addPane(javax.swing.Icon icon,
java.lang.String title,
java.awt.Component content)
Adds new collapsible pane into accordion with the specified icon, title and content. |
|
WebCollapsiblePane |
addPane(int index,
java.awt.Component title,
java.awt.Component content)
Adds new collapsible pane into accordion with the specified title component and content at the specified index. |
|
WebCollapsiblePane |
addPane(int index,
javax.swing.Icon icon,
java.lang.String title,
java.awt.Component content)
Adds new collapsible pane into accordion with the specified icon, title and content at the specified index. |
|
WebCollapsiblePane |
addPane(int index,
java.lang.String title,
java.awt.Component content)
Adds new collapsible pane into accordion with the specified title and content at the specified index. |
|
protected WebCollapsiblePane |
addPane(int index,
WebCollapsiblePane pane)
Adds collapsible pane into accordion at the specified index. |
|
WebCollapsiblePane |
addPane(java.lang.String title,
java.awt.Component content)
Adds new collapsible pane into accordion with the specified title and content. |
|
protected void |
fireSelectionChanged()
Notifies when collapsible pane starts to expand. |
|
java.util.List<AccordionListener> |
getAccordionListeners()
Returns accordion listeners. |
|
AccordionStyle |
getAccordionStyle()
Returns accordion style. |
|
java.util.List<WebCollapsiblePane> |
getActualPanesList()
Returns actual list of available collapsible panes. |
|
javax.swing.ImageIcon |
getCollapseIcon()
Returns expanded state icon. |
|
java.awt.Component |
getContentAt(int index)
Returns collapsible pane content at the specified index. |
|
java.awt.Insets |
getContentMarginAt(int index)
Returns collapsible pane margin at the specified index. |
|
javax.swing.ImageIcon |
getExpandIcon()
Returns collapsed state icon. |
|
int |
getFirstSelectedIndex()
Returns index of the first expanded collapsible pane or -1 if none expanded. |
|
int |
getGap()
Returns gap between panes for separated accordion style. |
|
javax.swing.Icon |
getIconAt(int index)
Returns collapsible pane icon at the specified index. |
|
int |
getOrientation()
Returns accordion orientation. |
|
WebCollapsiblePane |
getPane(int index)
Returns collapsible pane at the specified index. |
|
java.util.List<WebCollapsiblePane> |
getPanes()
Returns list of available collapsible panes. |
|
java.util.List<java.lang.Integer> |
getSelectedIndices()
Returns selected collapsible pane indices. |
|
java.util.List<WebCollapsiblePane> |
getSelectedPanes()
Returns selected collapsible panes. |
|
int |
getSelectionCount()
Returns amount of expanded collapsible panes. |
|
java.lang.String |
getTitleAt(int index)
Returns collapsible pane title at the specified index. |
|
java.awt.Component |
getTitleComponentAt(int index)
Returns collapsible pane title component at the specified index. |
|
protected void |
initializeDefaultSettings(AccordionStyle style)
Initializes default accordion settings. |
|
boolean |
isAnimate()
Returns whether animate transition between states or not. |
|
boolean |
isAnySelected()
Returns whether any collapsible pane is expanded or not. |
|
boolean |
isFillSpace()
Returns whether accordion must fill all available space with expanded panes or not. |
|
boolean |
isMultiplySelectionAllowed()
Returns whether multiply expanded panes are allowed 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 |
removeAccordionListener(AccordionListener listener)
Removes collapsible pane listener. |
|
void |
removePane(int index)
Removes collapsible pane from the specified index from accordion. |
|
protected void |
removePane(WebCollapsiblePane pane)
Removes collapsible pane from accordion. |
|
void |
saveSettings()
Saves component settings. |
|
void |
setAccordionListeners(java.util.List<AccordionListener> listeners)
Sets accordion listeners. |
|
void |
setAccordionStyle(AccordionStyle accordionStyle)
Sets accordion style. |
|
void |
setAnimate(boolean animate)
Sets whether animate transition between states or not. |
|
void |
setCollapseIcon(javax.swing.ImageIcon collapseIcon)
Sets expanded state icon. |
|
void |
setContentAt(int index,
java.awt.Component content)
Sets collapsible pane content at the specified index. |
|
void |
setContentMarginAt(int index,
java.awt.Insets margin)
Sets collapsible pane margin at the specified index. |
|
void |
setContentMarginAt(int index,
int margin)
Sets collapsible pane margin at the specified index. |
|
void |
setContentMarginAt(int index,
int top,
int left,
int bottom,
int right)
Sets collapsible pane margin at the specified index. |
|
void |
setExpandIcon(javax.swing.ImageIcon expandIcon)
Sets collapsed state icon. |
|
void |
setFillSpace(boolean fillSpace)
Sets whether accordion must fill all available space with expanded panes or not. |
|
void |
setGap(int gap)
Sets gap between panes for separated accordion style. |
|
void |
setIconAt(int index,
javax.swing.Icon icon)
Sets collapsible pane icon at the specified index. |
|
void |
setMultiplySelectionAllowed(boolean multiplySelectionAllowed)
Sets whether multiply expanded panes are allowed or not. |
|
void |
setOrientation(int orientation)
Sets accordion orientation. |
|
void |
setSelectedIndices(java.util.List<java.lang.Integer> indices)
Sets selected collapsible pane indices. |
|
void |
setSelectedPanes(java.util.List<WebCollapsiblePane> selectedPanes)
Sets selected collapsible panes. |
|
void |
setTitleAt(int index,
java.lang.String title)
Sets collapsible pane title at the specified index. |
|
void |
setTitleComponentAt(int index,
java.awt.Component titleComponent)
Sets collapsible pane title component at the specified index. |
|
void |
unregisterSettings()
Unregisters component from settings auto-save. |
|
protected void |
updatePaneIcons()
Updates collapsible pane icons. |
|
protected void |
updatePanesAnimation()
Updates collapsible panes animation property. |
|
protected void |
updatePanesBorderStyling()
Updates panes styling according to accordion settings. |
|
protected void |
updateSelections(int index,
boolean collapse)
Updates panes selection states. |
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 |
Field Detail |
---|
protected boolean animate
protected AccordionStyle accordionStyle
protected int orientation
protected javax.swing.ImageIcon expandIcon
protected javax.swing.ImageIcon collapseIcon
protected boolean fillSpace
protected boolean multiplySelectionAllowed
protected int gap
protected java.util.List<AccordionListener> listeners
protected java.util.List<WebCollapsiblePane> panes
protected java.util.List<CollapsiblePaneListener> stateListeners
protected WebCollapsiblePane lastExpanded
Constructor Detail |
---|
public WebAccordion()
public WebAccordion(AccordionStyle style)
style
- accordion styleMethod Detail |
---|
protected void initializeDefaultSettings(AccordionStyle style)
public boolean isAnimate()
public void setAnimate(boolean animate)
animate
- whether animate transition between states or notprotected void updatePanesAnimation()
public int getOrientation()
public void setOrientation(int orientation)
orientation
- new accordion orientationpublic javax.swing.ImageIcon getExpandIcon()
public void setExpandIcon(javax.swing.ImageIcon expandIcon)
expandIcon
- new collapsed state iconpublic javax.swing.ImageIcon getCollapseIcon()
public void setCollapseIcon(javax.swing.ImageIcon collapseIcon)
collapseIcon
- new expanded state iconprotected void updatePaneIcons()
public AccordionStyle getAccordionStyle()
public void setAccordionStyle(AccordionStyle accordionStyle)
accordionStyle
- new accordion stylepublic boolean isFillSpace()
public void setFillSpace(boolean fillSpace)
fillSpace
- whether accordion must fill all available space with expanded panes or notpublic boolean isMultiplySelectionAllowed()
public void setMultiplySelectionAllowed(boolean multiplySelectionAllowed)
multiplySelectionAllowed
- whether multiply expanded panes are allowed or notprotected void updateSelections(int index, boolean collapse)
index
- index of the pane that will be left expanded in case multiply expanded panes are not allowedcollapse
- whether allow to collapse panes or notpublic int getGap()
public void setGap(int gap)
gap
- new gap between panes for separated accordion stylepublic WebCollapsiblePane addPane(java.lang.String title, java.awt.Component content)
title
- collapsible pane titlecontent
- collapsible pane content
public WebCollapsiblePane addPane(int index, java.lang.String title, java.awt.Component content)
index
- collapsible pane indextitle
- collapsible pane titlecontent
- collapsible pane content
public WebCollapsiblePane addPane(javax.swing.Icon icon, java.lang.String title, java.awt.Component content)
icon
- collapsible pane icontitle
- collapsible pane titlecontent
- collapsible pane content
public WebCollapsiblePane addPane(int index, javax.swing.Icon icon, java.lang.String title, java.awt.Component content)
index
- collapsible pane indexicon
- collapsible pane icontitle
- collapsible pane titlecontent
- collapsible pane content
public WebCollapsiblePane addPane(java.awt.Component title, java.awt.Component content)
title
- collapsible pane title componentcontent
- collapsible pane content
public WebCollapsiblePane addPane(int index, java.awt.Component title, java.awt.Component content)
index
- collapsible pane indextitle
- collapsible pane title componentcontent
- collapsible pane content
protected WebCollapsiblePane addPane(int index, WebCollapsiblePane pane)
index
- collapsible pane indexpane
- collapsible pane to add
public void removePane(int index)
index
- collapsible pane indexprotected void removePane(WebCollapsiblePane pane)
pane
- collapsible pane to removepublic java.util.List<WebCollapsiblePane> getPanes()
public java.util.List<WebCollapsiblePane> getActualPanesList()
public WebCollapsiblePane getPane(int index)
index
- collapsible pane index
protected void updatePanesBorderStyling()
public boolean isAnySelected()
public int getFirstSelectedIndex()
public int getSelectionCount()
public javax.swing.Icon getIconAt(int index)
index
- collapsible pane index
public void setIconAt(int index, javax.swing.Icon icon)
index
- collapsible pane indexicon
- new collapsible pane iconpublic java.lang.String getTitleAt(int index)
index
- collapsible pane index
public void setTitleAt(int index, java.lang.String title)
index
- collapsible pane indextitle
- new collapsible pane titlepublic java.awt.Component getTitleComponentAt(int index)
index
- collapsible pane index
public void setTitleComponentAt(int index, java.awt.Component titleComponent)
index
- collapsible pane indextitleComponent
- new collapsible pane title componentpublic java.awt.Component getContentAt(int index)
index
- collapsible pane index
public void setContentAt(int index, java.awt.Component content)
index
- collapsible pane indexcontent
- new collapsible pane contentpublic java.awt.Insets getContentMarginAt(int index)
index
- collapsible pane index
public void setContentMarginAt(int index, java.awt.Insets margin)
index
- collapsible pane indexmargin
- new collapsible pane marginpublic void setContentMarginAt(int index, int top, int left, int bottom, int right)
index
- collapsible pane indextop
- new collapsible pane top marginleft
- new collapsible pane left marginbottom
- new collapsible pane bottom marginright
- new collapsible pane right marginpublic void setContentMarginAt(int index, int margin)
index
- collapsible pane indexmargin
- new collapsible pane marginpublic java.util.List<WebCollapsiblePane> getSelectedPanes()
public void setSelectedPanes(java.util.List<WebCollapsiblePane> selectedPanes)
selectedPanes
- selected collapsible panespublic java.util.List<java.lang.Integer> getSelectedIndices()
public void setSelectedIndices(java.util.List<java.lang.Integer> indices)
indices
- selected collapsible pane indicespublic java.util.List<AccordionListener> getAccordionListeners()
public void setAccordionListeners(java.util.List<AccordionListener> listeners)
listeners
- accordion listenerspublic void addAccordionListener(AccordionListener listener)
listener
- accordion listener to addpublic void removeAccordionListener(AccordionListener listener)
listener
- collapsible pane listener to removeprotected void fireSelectionChanged()
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 |