|
JIDE 3.5.15 | ||||||||
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.jidesoft.pane.CollapsiblePane
public class CollapsiblePane
CollapsiblePane, as the name indicates, is a pane which can be collapsed. Users can expand the pane so that they can work on it. When it is done, they can collapse it to save place.
All you need to do is to create a CollapsiblePane by passing in the title and icon (if any), and set the content panel which will be expanded or collapsed. CollapsiblePane has several different styles built-in. They are
Nested Class Summary | |
---|---|
protected class |
CollapsiblePane.AccessibleCollapsiblePane
This class implements accessibility support for the CollapsiblePane class. |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
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 javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
CollapsiblePane()
Create an CollapsiblePane with no name and default icon. |
|
CollapsiblePane(String title)
Create an CollapsiblePane with title and default icon. |
|
CollapsiblePane(String title,
Icon icon)
Create an CollapsiblePane with title and icon. |
|
CollapsiblePane(String title,
Icon icon,
int slidingDirection)
Create an CollapsiblePane with title and icon. |
|
CollapsiblePane(String title,
Icon icon,
int initDelay,
int stepDelay,
int steps)
|
|
CollapsiblePane(String title,
Icon icon,
int initDelay,
int stepDelay,
int steps,
int slidingDirection)
|
|
CollapsiblePane(String title,
int slidingDirection)
|
Method Summary | |
---|---|
void |
addCollapsiblePaneListener(CollapsiblePaneListener l)
Adds the specified listener to receive collapsible pane events from this collapsible frame. |
protected void |
addImpl(Component comp,
Object constraints,
int index)
Ensures that, by default, children cannot be added directly to this component. |
protected int |
checkHorizontalKey(int key,
String message)
Verify that key is a legal value for the horizontalAlignment properties. |
protected int |
checkVerticalKey(int key,
String message)
Verify that key is a legal value for the verticalAlignment or verticalTextPosition properties. |
void |
collapse(boolean collapse)
Expands or collapses the CollapsiblePane . |
void |
fireCollapsiblePaneEvent(int eventID)
Fires an collapsible pane event. |
AccessibleContext |
getAccessibleContext()
Gets the AccessibleContext associated with this CollapsiblePane . |
JComponent |
getActualComponent()
Gets the scroll pane used internally. |
Function |
getAnimationFunction()
Gets the animation function that is used to animate the showing effect of the content. |
Icon |
getCollapsedIcon()
Gets the collapsed icon which is used for the expand button. |
int |
getCollapsedPercentage()
Gets the collapsed percentage. |
CollapsiblePaneListener[] |
getCollapsiblePaneListeners()
Returns an array of all the CollapsiblePaneListener s added to this CollapsiblePane with
addCollapsiblePaneListener . |
JComponent |
getContentPane()
Returns the content pane for this collapsible pane. |
int |
getContentPaneHeight()
Gets the height of content pane. |
int |
getContentPaneWidth()
Gets the width of content pane. |
Icon |
getExpandedIcon()
Gets the expanded icon which is used for the expand button. |
int |
getHorizontalAlignment()
Returns the alignment of the label's contents along the X axis. |
int |
getHorizontalTextPosition()
Returns the horizontal position of the label's text, relative to its image. |
Icon |
getIcon()
Returns the image displayed in the title bar of this collapsible pane (usually in the top-left corner). |
int |
getIconTextGap()
Returns the amount of space between the text and the icon displayed in this label. |
int |
getInitDelay()
Gets the initial delay when starts to animate. |
String |
getResourceString(String key)
Gets the resource string used in CollapsiblePane. |
int |
getSlidingDirection()
Gets the sliding direction. |
int |
getStepDelay()
Gets the delay in each step during animation. |
int |
getSteps()
Gets how many steps in the animation. |
int |
getStyle()
Gets the style. |
String |
getTitle()
Returns the title of the CollapsiblePane . |
Component |
getTitleComponent()
Gets the title component that is displayed on the title pane of CollapsiblePane. |
Icon |
getTitleIcon()
Returns the image displayed in the title bar of this collapsible pane (usually in the top-left corner). |
JComponent |
getTitleLabelComponent()
Gets the component which is used to replace the default title. |
int |
getTitleLabelGap()
Get the gap between the title label and the title component or the collapse icon in TREE_STYLE or PLAIN_STYLE The default value is 4. |
Action |
getToggleAction()
Gets the toggle action. |
PanelUI |
getUI()
Returns the look-and-feel object that renders this component. |
String |
getUIClassID()
Returns the name of the look-and-feel class that renders this component. |
int |
getVerticalAlignment()
Returns the alignment of the label's contents along the Y axis. |
int |
getVerticalTextPosition()
Returns the vertical position of the label's text, relative to its image. |
boolean |
isAutoExpandOnDragover()
Gets the autoExpandOnDragover property. |
boolean |
isCollapsed()
Checks if the CollapsiblePane is collapsed. |
boolean |
isCollapseOnTitleClick()
Get the flag indicating if the pane will be collapsed while mouse clicking on the title. |
boolean |
isCollapsible()
Checks if CollapsiblePane is collapsible. |
boolean |
isContentAreaFilled()
Gets the contentAreaFilled property. |
boolean |
isContentBorderVisible()
Checks if the content border is visible. |
protected boolean |
isContentPaneCheckingEnabled()
Returns whether calls to add and setLayout cause an exception to be thrown. |
boolean |
isEmphasized()
Checks if CollapsiblePane is in emphasized mode. |
boolean |
isExpanded()
Checks if the CollapsiblePane is expanded. |
boolean |
isFocusPainted()
Gets the focusPainted property. |
boolean |
isRollover()
Checks if the mouse is over the title pane. |
boolean |
isRotateIcon()
Gets the flag indicating if the icon should be rotated. |
boolean |
isShowExpandButton()
Checks if the expand/collapse button is visible. |
boolean |
isShowTitleBar()
Checks if the title bar is visible. |
boolean |
isTitlePaneOpaque()
Gets the titlePaneOpaque property. |
void |
remove(Component comp)
Removes the specified component from this container. |
void |
removeCollapsiblePaneListener(CollapsiblePaneListener l)
Removes the specified collapsible pane listener so that it no longer receives collapsible pane events from this collapsible pane . |
Icon |
rotateIcon(Icon originalIcon)
Rotates the icon according to the sliding direction of the CollapsiblePane. |
void |
setAnimationFunction(Function animationFunction)
Sets the animation function. |
void |
setAutoExpandOnDragover(boolean b)
Sets the autoExpandOnDragover property. |
void |
setCollapsed(boolean b)
|
void |
setCollapsedIcon(Icon icon)
Sets the collapsed icon which is used for the expand button. |
void |
setCollapsedPercentage(int percentage)
Sets the collapsed percentage. |
void |
setCollapseOnTitleClick(boolean collapseOnTitleClick)
Set the flag indicating if the pane will be collapsed while mouse clicking on the title. |
void |
setCollapsible(boolean collapsible)
Sets collapsible flag. |
void |
setContentAreaFilled(boolean contentAreaFilled)
Sets the contentAreaFilled property. |
void |
setContentBorderVisible(boolean visible)
Sets if the content border is visible. |
void |
setContentPane(JComponent c)
Sets this CollapsiblePane 's contentPane property. |
protected void |
setContentPaneCheckingEnabled(boolean enabled)
Determines whether calls to add and setLayout cause an exception to be thrown. |
void |
setContentPaneHeight(int contentPaneHeight)
Set the height of content pane. |
void |
setContentPaneWidth(int contentPaneWidth)
Set the width of content pane. |
void |
setEmphasized(boolean emphasized)
When there are several CollapsiblePane in a group, in case you want to emphasize one of them, you can call setEmphasized(true). |
void |
setExpandedIcon(Icon icon)
Sets the expanded icon which is used for the expand button. |
void |
setFocusPainted(boolean b)
Sets the focusPainted property, which must be true for the focus state to be painted. |
void |
setHorizontalAlignment(int alignment)
Sets the alignment of the label's contents along the X axis. |
void |
setHorizontalTextPosition(int textPosition)
Sets the horizontal position of the label's text, relative to its image. |
void |
setIcon(Icon icon)
Sets an image to be displayed in the title bar of this collapsible pane (usually in the top-left corner). |
void |
setIconTextGap(int iconTextGap)
If both the icon and text properties are set, this property defines the space between them. |
void |
setInitDelay(int initDelay)
Sets the initial delay when the button is pressed before it starts to switch, in ms. |
void |
setLayout(LayoutManager manager)
Ensures that, by default, the layout of this component cannot be set. |
void |
setRollover(boolean rollover)
Sets rollover. |
void |
setRotateIcon(boolean rotateIcon)
Sets the flag indicating if the icon should be rotated. |
void |
setShowExpandButton(boolean showExpandButton)
Sets the visibility of expand/collapse button. |
void |
setShowTitleBar(boolean showTitleBar)
Sets the visibility of title bar. |
void |
setSlidingDirection(int slidingDirection)
Sets the sliding direction. |
void |
setStepDelay(int stepDelay)
Sets the delay in each step during animation, in ms. |
void |
setSteps(int steps)
Sets how many steps in the animation, default is 10 steps. |
void |
setStyle(int style)
Sets the style. |
void |
setTitle(String title)
Sets the CollapsiblePane title. |
void |
setTitleComponent(Component titleComponent)
Sets the title components. |
void |
setTitleIcon(Icon icon)
Sets an image to be displayed in the title bar of this collapsible pane (usually in the top-left corner). |
void |
setTitleLabelComponent(JComponent component)
Sets a component which will be used to replace the default title. |
void |
setTitleLabelGap(int titleLabelGap)
Set the gap between the title label and the title component or the collapse icon in TREE_STYLE or PLAIN_STYLE |
void |
setTitlePaneOpaque(boolean opaque)
Sets the titlePaneOpaque property. |
void |
setToggleAction(Action action)
Sets the action when the title pane or the expand/collapse button is clicked. |
void |
setUI(CollapsiblePaneUI ui)
Sets the UI delegate for this CollapsiblePane . |
void |
setVerticalAlignment(int alignment)
Sets the alignment of the label's contents along the Y axis. |
void |
setVerticalTextPosition(int textPosition)
Sets the vertical position of the label's text, relative to its image. |
void |
updateUI()
Notification from the UIManager that the look and feel has changed. |
Methods inherited from class javax.swing.JPanel |
---|
paramString, setUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String CONTENT_PANE_PROPERTY
public static final String TITLE_PROPERTY
public static final String ICON_PROPERTY
public static final String PROPERTY_TITLE_ICON
public static final String COLLAPSED_PROPERTY
public static final String STYLE_PROPERTY
public static final String PROPERTY_COLLAPSED_ICON
public static final String PROPERTY_EXPANDED_ICON
protected boolean _collapsed
protected int _collapsedPercentage
protected int _contentPaneHeight
protected int _contentPaneWidth
public static final int DROPDOWN_STYLE
public static final int TREE_STYLE
public static final int PLAIN_STYLE
public static final int SEPARATOR_STYLE
public static final String EMPHASIZED_PROPERTY
protected boolean _rollover
public static final String ICONTEXTGAP_PROPERTY
public static final String VERTICAL_ALIGNMENT_PROPERTY
public static final String HORIZONTAL_ALIGNMENT_PROPERTY
public static final String VERTICAL_TEXTPOSITION_PROPERTY
public static final String HORIZONTAL_TEXTPOSITION_PROPERTY
public static final String PROPERTY_COLLAPSIBLE
public static final String PROPERTY_SHOW_TITLE_BAR
public static final String PROPERTY_SHOW_EXPAND_BUTTON
public static final String PROPERTY_SLIDING_DIRECTION
public static final String PROPERTY_FOCUS_PAINTED
public static final String PROPERTY_CONTENTAREA_FILLED
public static final String PROPERTY_TITLE_PANE_OPAQUE
public static final String PROPERTY_AUTO_EXPAND_ON_DRAGOVER
public static final String PROPERTY_TITLE_COMPONENT
public static final String PROPERTY_TITLE_LABEL_COMPONENT
public static final String PROPERTY_COLLAPSE_ON_TITLE_CLICK
public static final String PROPERTY_COLLAPSED_PERCENTAGE
public static final String PROPERTY_TOGGLE_ACTION
public static final String PROPERTY_CONTENT_BORDER_VISIBLE
Constructor Detail |
---|
public CollapsiblePane()
public CollapsiblePane(String title)
title
and default icon.
title
- title of the collapsible panepublic CollapsiblePane(String title, int slidingDirection)
public CollapsiblePane(String title, Icon icon, int initDelay, int stepDelay, int steps)
public CollapsiblePane(String title, Icon icon, int initDelay, int stepDelay, int steps, int slidingDirection)
public CollapsiblePane(String title, Icon icon)
title
and icon.
title
- title of the collapsible paneicon
- icon of the collapsible panepublic CollapsiblePane(String title, Icon icon, int slidingDirection)
title
and icon.
title
- title of the collapsible paneicon
- icon of the collapsible paneslidingDirection
- the sliding direction.Method Detail |
---|
public PanelUI getUI()
getUI
in class JPanel
CollapsiblePaneUI
object that renders this componentpublic void setUI(CollapsiblePaneUI ui)
CollapsiblePane
.
ui
- the UI delegatepublic void updateUI()
UIManager
that the look and feel has changed. Replaces the current UI object
with the latest version from the UIManager
.
updateUI
in class JPanel
JComponent.updateUI()
public String getUIClassID()
getUIClassID
in class JPanel
JComponent.getUIClassID()
,
UIDefaults.getUI(javax.swing.JComponent)
protected boolean isContentPaneCheckingEnabled()
add
and setLayout
cause an exception to be thrown.
true
if add
and setLayout
are checkedaddImpl(java.awt.Component, java.lang.Object, int)
,
setLayout(java.awt.LayoutManager)
,
setContentPaneCheckingEnabled(boolean)
protected void setContentPaneCheckingEnabled(boolean enabled)
add
and setLayout
cause an exception to be thrown.
enabled
- a boolean value, true
if checking is to be enabled, which cause the exceptions to be
thrownaddImpl(java.awt.Component, java.lang.Object, int)
,
setLayout(java.awt.LayoutManager)
,
isContentPaneCheckingEnabled()
protected void addImpl(Component comp, Object constraints, int index)
thisComponent.getContentPane().add(child)An attempt to add to directly to this component will cause a runtime exception to be thrown. Subclasses can disable this behavior.
addImpl
in class Container
comp
- the Component
to be addedconstraints
- the object containing the constraints, if anyindex
- the index
Error
- if called with isRootPaneChecking
true
setContentPaneCheckingEnabled(boolean)
public void remove(Component comp)
remove
in class Container
comp
- the component to be removedContainer.add(java.awt.Component)
public void setLayout(LayoutManager manager)
thisComponent.getContentPane().setLayout(new GridLayout(1,2))An attempt to set the layout of this component will cause an runtime exception to be thrown. Subclasses can disable this behavior.
setLayout
in class Container
manager
- the LayoutManager
Error
- if called with isRootPaneChecking
true
setContentPaneCheckingEnabled(boolean)
public JComponent getContentPane()
public void setContentPane(JComponent c)
CollapsiblePane
's contentPane
property.
c
- the content pane for this collapsible pane
IllegalComponentStateException
- (a runtime exception) if the content pane parameter is null
RootPaneContainer.getContentPane()
public void setCollapsed(boolean b) throws PropertyVetoException
b
- a boolean value, where true
means this collapsible pane is collapsed
PropertyVetoException
- if the property change is vetoed.public boolean isCollapsed()
true
if this collapsible pane is collapsed.public boolean isExpanded()
true
if this collapsible pane is expanded.public String getTitle()
CollapsiblePane
.
String
containing this collapsible pane's titleComponent.setName(java.lang.String)
public void setTitle(String title)
CollapsiblePane
title. title
may have a null
value.
title
- the String
to display in the title barpublic void setIcon(Icon icon)
icon
- the Icon
to display in the title bargetIcon()
public Icon getIcon()
Icon
displayed in the title barsetIcon(javax.swing.Icon)
public void setTitleIcon(Icon icon)
icon
- the Icon
to display in the title bargetIcon()
public Icon getTitleIcon()
Icon
displayed in the title barsetIcon(javax.swing.Icon)
protected int checkHorizontalKey(int key, String message)
key
- the property value to checkmessage
- the IllegalArgumentException detail message
IllegalArgumentException
- if key isn't LEFT, CENTER, RIGHT, LEADING or TRAILING.setHorizontalTextPosition(int)
,
setHorizontalAlignment(int)
protected int checkVerticalKey(int key, String message)
key
- the property value to checkmessage
- the IllegalArgumentException detail message
IllegalArgumentException
- if key isn't TOP, CENTER, or BOTTOM.setVerticalAlignment(int)
,
setVerticalTextPosition(int)
public int getIconTextGap()
setIconTextGap(int)
public void setIconTextGap(int iconTextGap)
iconTextGap
- the new gap between icon and text.getIconTextGap()
public int getVerticalAlignment()
SwingConstants
: TOP
, CENTER
, or BOTTOM
.SwingConstants
,
setVerticalAlignment(int)
public void setVerticalAlignment(int alignment)
alignment
- One of the following constants defined in SwingConstants
: TOP
,
CENTER
(the default), or BOTTOM
. enum: TOP SwingConstants.TOP CENTER
SwingConstants.CENTER BOTTOM SwingConstants.BOTTOM attribute: visualUpdate true description: The
alignment of the label's contents along the Y axis.SwingConstants
,
getVerticalAlignment()
public int getHorizontalAlignment()
SwingConstants
: LEFT
, CENTER
, RIGHT
,
LEADING
or TRAILING
.setHorizontalAlignment(int)
,
SwingConstants
public void setHorizontalAlignment(int alignment)
alignment
- One of the following constants defined in SwingConstants
: LEFT
,
CENTER
(the default for image-only labels), RIGHT
,
LEADING
(the default for text-only labels) or TRAILING
. enum: LEFT
SwingConstants.LEFT CENTER SwingConstants.CENTER RIGHT SwingConstants.RIGHT LEADING
SwingConstants.LEADING TRAILING SwingConstants.TRAILING attribute: visualUpdate true
description: The alignment of the label's content along the X axis.SwingConstants
,
getHorizontalAlignment()
public int getVerticalTextPosition()
SwingConstants
: TOP
,
CENTER
, or BOTTOM
.setVerticalTextPosition(int)
,
SwingConstants
public void setVerticalTextPosition(int textPosition)
textPosition
- One of the following constants defined in SwingConstants
: TOP
,
CENTER
(the default), or BOTTOM
. enum: TOP SwingConstants.TOP
CENTER SwingConstants.CENTER BOTTOM SwingConstants.BOTTOM expert: true attribute:
visualUpdate true description: The vertical position of the text relative to it's image.SwingConstants
,
getVerticalTextPosition()
public int getHorizontalTextPosition()
SwingConstants
: LEFT
,
CENTER
, RIGHT
, LEADING
or TRAILING
.SwingConstants
public void setHorizontalTextPosition(int textPosition)
textPosition
- One of the following constants defined in SwingConstants
: LEFT
,
CENTER
, RIGHT
, LEADING
, or TRAILING
(the
default).
IllegalArgumentException
- bound: true enum: LEFT SwingConstants.LEFT CENTER SwingConstants.CENTER
RIGHT SwingConstants.RIGHT LEADING SwingConstants.LEADING TRAILING
SwingConstants.TRAILING attribute: visualUpdate true description: The horizontal
position of the label's text, relative to its image.SwingConstants
public void addCollapsiblePaneListener(CollapsiblePaneListener l)
l
- the collapsible pane listenerpublic void removeCollapsiblePaneListener(CollapsiblePaneListener l)
l
- the collapsible pane listenerpublic CollapsiblePaneListener[] getCollapsiblePaneListeners()
CollapsiblePaneListener
s added to this CollapsiblePane
with
addCollapsiblePaneListener
.
CollapsiblePaneListener
s added or an empty array if no listeners have been addedaddCollapsiblePaneListener(com.jidesoft.pane.event.CollapsiblePaneListener)
public void fireCollapsiblePaneEvent(int eventID)
eventID
- the event idpublic AccessibleContext getAccessibleContext()
AccessibleContext
associated with this CollapsiblePane
. For collapsible pane,
the AccessibleContext
takes the form of an AccessibleCollapsiblePane
object. A new
AccessibleCollapsiblePane
instance is created if necessary.
getAccessibleContext
in interface Accessible
getAccessibleContext
in class JPanel
AccessibleCollapsiblePane
that serves as the AccessibleContext
of this
CollapsiblePane
CollapsiblePane.AccessibleCollapsiblePane
public boolean isCollapseOnTitleClick()
public void setCollapseOnTitleClick(boolean collapseOnTitleClick)
collapseOnTitleClick
- the flagisCollapseOnTitleClick()
public int getTitleLabelGap()
public void setTitleLabelGap(int titleLabelGap)
titleLabelGap
- the gapgetTitleLabelGap()
public int getContentPaneHeight()
public void setContentPaneHeight(int contentPaneHeight)
contentPaneHeight
- the new height of content panepublic int getContentPaneWidth()
public void setContentPaneWidth(int contentPaneWidth)
contentPaneWidth
- the new width of content panepublic JComponent getActualComponent()
public int getInitDelay()
public void setInitDelay(int initDelay)
initDelay
- the initial delaypublic int getStepDelay()
public void setStepDelay(int stepDelay)
stepDelay
- the delay in each steppublic int getSteps()
public void setSteps(int steps)
steps
- number of the stepspublic int getStyle()
public void setStyle(int style)
style
- the new stylepublic int getSlidingDirection()
public void setSlidingDirection(int slidingDirection)
SwingConstants.NORTH
, SwingConstants.SOUTH
, SwingConstants.EAST
or SwingConstants.WEST
. Default is SwingConstants.SOUTH
.
slidingDirection
- the sliding direction.public boolean isEmphasized()
public void setEmphasized(boolean emphasized)
emphasized
- true or false.public boolean isCollapsible()
public void setCollapsible(boolean collapsible)
collapsible
- true or falsepublic boolean isShowTitleBar()
public void setShowTitleBar(boolean showTitleBar)
showTitleBar
- true to show title bar.public boolean isShowExpandButton()
public void setShowExpandButton(boolean showExpandButton)
showExpandButton
- true to show expand/collapse button.public void collapse(boolean collapse)
CollapsiblePane
. Different from setCollapsed(boolean)
method which
is to set the state, this method is an action which will use the animation to expand/collapse this
CollapsiblePane
.
collapse
- true or false.public boolean isFocusPainted()
focusPainted
property.
focusPainted
propertysetFocusPainted(boolean)
public void setFocusPainted(boolean b)
focusPainted
property, which must be true
for the focus state to be painted.
The default value for the focusPainted
property is true
. Some look and feels might not
paint focus state; they will ignore this property.
b
- if true
, the focus state should be paintedisFocusPainted()
public boolean isContentAreaFilled()
contentAreaFilled
property.
contentAreaFilled
propertysetContentAreaFilled(boolean)
public void setContentAreaFilled(boolean contentAreaFilled)
contentAreaFilled
property. The default value for the contentAreaFilled
property is true
. Some look and feels might not paint focus state; they will ignore this property.
contentAreaFilled
- true or false.isContentAreaFilled()
public boolean isTitlePaneOpaque()
titlePaneOpaque
property.
titlePaneOpaque
propertysetTitlePaneOpaque(boolean)
public void setTitlePaneOpaque(boolean opaque)
titlePaneOpaque
property. The default value for the titlePaneOpaque
property
is true
. If false, the title pane will not paint the background.
opaque
- true or false.isContentAreaFilled()
public Component getTitleComponent()
public void setTitleComponent(Component titleComponent)
titleComponent
- the title componentpublic void setTitleLabelComponent(JComponent component)
component
- title label componentpublic JComponent getTitleLabelComponent()
public boolean isAutoExpandOnDragover()
autoExpandOnDragover
property.
autoExpandOnDropping
propertysetAutoExpandOnDragover(boolean)
public void setAutoExpandOnDragover(boolean b)
autoExpandOnDragover
property. The default value for the autoExpandOnDropping
property is true
. If false, the collapsible pane will not expand when something is dragged over the
title pane.
b
- true or false.public boolean isRollover()
public void setRollover(boolean rollover)
rollover
- true or falsepublic void setExpandedIcon(Icon icon)
icon
- the ExpandedIcon
for the expand buttongetExpandedIcon()
public Icon getExpandedIcon()
ExpandedIcon
for the expand button.setExpandedIcon(javax.swing.Icon)
public void setCollapsedIcon(Icon icon)
icon
- the CollapsedIcon
for the expand buttongetCollapsedIcon()
public Icon getCollapsedIcon()
Icon
for the expand button.setCollapsedIcon(javax.swing.Icon)
public void setCollapsedPercentage(int percentage)
percentage
- the CollapsedPercentage
, valid value is from 0 to 100.getCollapsedPercentage()
public int getCollapsedPercentage()
setCollapsedPercentage(int)
public void setToggleAction(Action action)
action
- the ToggleAction
getToggleAction()
public Action getToggleAction()
setToggleAction(javax.swing.Action)
is never called, this method will return
the default action defined in the CollapsiblePaneUI.
setToggleAction(javax.swing.Action)
public boolean isContentBorderVisible()
public void setContentBorderVisible(boolean visible)
visible
- true or falsepublic String getResourceString(String key)
key
- the resource key
public Function getAnimationFunction()
public void setAnimationFunction(Function animationFunction)
animationFunction
- the animation function.public Icon rotateIcon(Icon originalIcon)
originalIcon
- the original icon
public boolean isRotateIcon()
public void setRotateIcon(boolean rotateIcon)
rotateIcon
- the flag
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |