|
||||||||||
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 bibliothek.gui.dock.themes.basic.action.buttons.MiniButtonContent
public class MiniButtonContent
This (invisible) Component
can be used by buttons to show an Icon
and a text that originate from
a BasicButtonModel
. The contents of this Component
will be update automatically.
Nested Class Summary |
---|
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 |
---|
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 | |
---|---|
MiniButtonContent()
Creates a new content component |
Method Summary | |
---|---|
boolean |
contains(int x,
int y)
|
void |
doLayout()
|
Dimension |
getMaximumSize()
|
protected Dimension |
getMinimumIconSize()
Gets the expected minimum size of any icon. |
Dimension |
getMinimumSize()
|
Dimension |
getPreferredSize()
|
void |
setForegroundColorId(String id,
String disabledId)
Creates a new ActionColor using id as unique identifier. |
void |
setLabelForeground(Color color)
Sets the foreground color of the label. |
void |
setModel(BasicButtonModel model)
Sets the model from which to read content. |
protected void |
updateContent()
Updates the content (icon, text, orientation, ...) of this MiniButtonContent . |
void |
updateLabelEnabled()
Changes the enable state of the label. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MiniButtonContent()
Method Detail |
---|
public void setForegroundColorId(String id, String disabledId)
ActionColor
using id
as unique identifier. This color
will be used as foreground
color. This method requires
that the model
is already set, but not yet bound.
id
- the unique identifier of the colorpublic void setLabelForeground(Color color)
color
- the new color, can be null
public void updateLabelEnabled()
public Dimension getPreferredSize()
getPreferredSize
in class JComponent
public Dimension getMinimumSize()
getMinimumSize
in class JComponent
public Dimension getMaximumSize()
getMaximumSize
in class JComponent
public void doLayout()
doLayout
in class Container
public boolean contains(int x, int y)
contains
in class JComponent
public void setModel(BasicButtonModel model)
model
- the model or null
, the model must not be bound.protected void updateContent()
MiniButtonContent
.
protected Dimension getMinimumIconSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |