|
HOME | |||||||
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.AbstractButton | +--javax.swing.JButton | +--com.ultraswing.CButton | +--com.ultraswing.FlatButton
A flat button implementation
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 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 | |
FlatButton()
Creates a button |
|
FlatButton(Icon img)
Creates a button with initial icon |
|
FlatButton(String text)
Creates a button with text. |
|
FlatButton(String text,
Icon img)
Creates a button with initial text and an icon |
|
FlatButton(String text,
Icon img,
boolean isVertical)
Creates a button with initial text and an icon |
|
FlatButton(String text,
int width,
int height)
Creates a button with text. |
Method Summary | |
void |
mouseClicked(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
setBorderChangeable(boolean b)
|
void |
setFlat()
Sets the button flat |
void |
setTransparent(boolean b)
Sets this button transparent or not |
void |
setVertical(boolean b)
Sets this button to be vertical |
void |
setVisible(boolean b)
Shows or hides this component depending on the value of parameter b. |
Methods inherited from class com.ultraswing.CButton |
getActionListeners, getVerticalButtonIcon, getVerticalButtonText, isVertical, paintComponent, setAntialias, setIcon, setText |
Methods inherited from class javax.swing.JButton |
configurePropertiesFromAction, getAccessibleContext, getUIClassID, isDefaultButton, isDefaultCapable, paramString, removeNotify, setDefaultCapable, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FlatButton()
public FlatButton(String text)
text
- the text of the buttonpublic FlatButton(String text, int width, int height)
text
- the text of the buttonwidth
- initial widthheight
- initial heightpublic FlatButton(String text, Icon img, boolean isVertical)
text
- the text of the buttonimg
- the Icon image to display on the buttonisVertical
- if true, this button is verticalpublic FlatButton(String text, Icon img)
text
- the text of the buttonimg
- the Icon image to display on the buttonpublic FlatButton(Icon img)
img
- the Icon image to display on the buttonMethod Detail |
public void setTransparent(boolean b)
public void setFlat()
public void setVisible(boolean b)
setVisible
in class JComponent
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void setBorderChangeable(boolean b)
public void setVertical(boolean b)
setVertical
in class CButton
b
- if true, show vertical button
|
HOME | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |