|
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 com.jidesoft.plaf.basic.BasicCollapsiblePaneTitlePane
public class BasicCollapsiblePaneTitlePane
Basic L&f implementation of title bar for CollapsiblePaneTitlePane
Nested Class Summary | |
---|---|
protected class |
BasicCollapsiblePaneTitlePane.BasicCollapseButton
|
class |
BasicCollapsiblePaneTitlePane.CollapsibleLayout
This inner class is marked "public" due to a compiler bug. |
class |
BasicCollapsiblePaneTitlePane.PropertyChangeHandler
This inner class is marked "public" due to a compiler bug. |
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 |
Field Summary | |
---|---|
protected BasicCollapsiblePaneTitlePane.BasicCollapseButton |
_collapseButton
|
protected Icon |
_collapsedIcon
It's the icon to be painted while the CollapsiblePane is collapsed while the style is #TREE_STYLE or #PLAIN_STYLE. |
protected String |
_collapseText
|
protected String |
_collapseToolTip
|
protected ImageIcon |
_downIcon
It's the icon to be painted while the CollapsiblePane is not emphasized and is collapsed while the style is #DROPDOWN_STYLE or #SEPARATOR_STYLE. |
protected ImageIcon |
_downRolloverIcon
It's the icon to be painted while the mouse is rollover the CollapsiblePane and the CollapsiblePane is collapsed. |
protected ImageIcon |
_emphasizedDownIcon
It's the icon to be painted while the CollapsiblePane is emphasized and is collapsed while the style is #DROPDOWN_STYLE or #SEPARATOR_STYLE. |
protected ImageIcon |
_emphasizedUpIcon
It's the icon to be painted while the CollapsiblePane is emphasized and is expanded while the style is #DROPDOWN_STYLE or #SEPARATOR_STYLE. |
protected Icon |
_expandedIcon
It's the icon to be painted while the CollapsiblePane is expanded while the style is #TREE_STYLE or #PLAIN_STYLE. |
protected CollapsiblePane |
_pane
|
protected JPopupMenu |
_popupMenu
|
protected PropertyChangeListener |
_propertyChangeListener
|
protected Component |
_titleComponent
|
protected JLabel |
_titleIconLabel
|
protected JComponent |
_titleLabel
|
protected ImageIcon |
_upIcon
It's the icon to be painted while the CollapsiblePane is not emphasized and is expanded while the style is #DROPDOWN_STYLE or #SEPARATOR_STYLE. |
protected ImageIcon |
_upRolloverIcon
It's the icon to be painted while the mouse is rollover the CollapsiblePane and the CollapsiblePane is expanded. |
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 java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
BasicCollapsiblePaneTitlePane(CollapsiblePane f)
|
Method Summary | |
---|---|
protected void |
addPopupMenuItems(JPopupMenu popup)
|
protected void |
addSubComponents()
|
protected void |
createActions()
|
protected BasicCollapsiblePaneTitlePane.BasicCollapseButton |
createCollapseButton()
|
protected JLabel |
createDefaultTitleLabel()
|
protected com.jidesoft.plaf.basic.BasicCollapsiblePaneTitlePane.DropListener |
createDropListener()
|
protected LayoutManager |
createLayout()
|
protected JPopupMenu |
createPopupMenu()
|
protected PropertyChangeListener |
createPropertyChangeListener()
|
protected void |
createSubComponents()
|
void |
focusGained(FocusEvent e)
Invoked when a component gains the keyboard focus. |
void |
focusLost(FocusEvent e)
Invoked when a component loses the keyboard focus. |
protected Dimension |
getActualTitlePaneDimension()
|
protected int |
getButtonSize()
|
protected Color |
getCollapsiblePaneForeground()
|
ThemePainter |
getPainter()
|
protected String |
getTitle(String text,
FontMetrics fm,
int availTextWidth)
|
protected void |
installDefaults()
|
protected void |
installListeners()
|
protected void |
installTitlePane()
|
boolean |
isRollover()
|
void |
paintComponent(Graphics g)
|
protected void |
paintFocusIndicator(Graphics g,
int x,
int y,
int w,
int h)
|
protected void |
paintTitleBackground(Graphics g)
Invoked from paintComponent. |
void |
popupMenu(MouseEvent e)
|
protected void |
setBounds(Container container,
Component component,
int x,
int y,
int width,
int height)
Sets the bounds while considering the leftToRight or rightToLeft if the sliding direction is north or south. |
void |
setRollover(boolean rollover)
|
protected void |
setupCollapseButton(BasicCollapsiblePaneTitlePane.BasicCollapseButton button)
|
protected void |
uninstallDefaults()
|
protected void |
uninstallListeners()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected BasicCollapsiblePaneTitlePane.BasicCollapseButton _collapseButton
protected JComponent _titleLabel
protected JLabel _titleIconLabel
protected Component _titleComponent
protected JPopupMenu _popupMenu
protected CollapsiblePane _pane
protected PropertyChangeListener _propertyChangeListener
protected String _collapseText
protected String _collapseToolTip
protected ImageIcon _upIcon
protected ImageIcon _downIcon
protected ImageIcon _emphasizedUpIcon
protected ImageIcon _emphasizedDownIcon
protected ImageIcon _upRolloverIcon
protected ImageIcon _downRolloverIcon
protected Icon _collapsedIcon
protected Icon _expandedIcon
Constructor Detail |
---|
public BasicCollapsiblePaneTitlePane(CollapsiblePane f)
Method Detail |
---|
protected void installTitlePane()
protected void addSubComponents()
protected void createActions()
protected void installListeners()
protected com.jidesoft.plaf.basic.BasicCollapsiblePaneTitlePane.DropListener createDropListener()
protected void uninstallListeners()
protected void installDefaults()
protected void uninstallDefaults()
protected void createSubComponents()
protected JLabel createDefaultTitleLabel()
protected BasicCollapsiblePaneTitlePane.BasicCollapseButton createCollapseButton()
protected void setupCollapseButton(BasicCollapsiblePaneTitlePane.BasicCollapseButton button)
protected void addPopupMenuItems(JPopupMenu popup)
protected JPopupMenu createPopupMenu()
public void paintComponent(Graphics g)
paintComponent
in class JComponent
protected void paintTitleBackground(Graphics g)
g
- the graphics to use to render the backgroundprotected void paintFocusIndicator(Graphics g, int x, int y, int w, int h)
protected Dimension getActualTitlePaneDimension()
protected String getTitle(String text, FontMetrics fm, int availTextWidth)
protected PropertyChangeListener createPropertyChangeListener()
protected LayoutManager createLayout()
protected void setBounds(Container container, Component component, int x, int y, int width, int height)
container
- the title panecomponent
- the child component on the title panex
- xy
- ywidth
- widthheight
- heightpublic void popupMenu(MouseEvent e)
public void focusGained(FocusEvent e)
focusGained
in interface FocusListener
public void focusLost(FocusEvent e)
focusLost
in interface FocusListener
public boolean isRollover()
public void setRollover(boolean rollover)
protected Color getCollapsiblePaneForeground()
public ThemePainter getPainter()
protected int getButtonSize()
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |