|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.cbse.jeasy.JEObject
com.cbse.jeasy.JEButton
public class JEButton
A class using JButton. The text of the button can be in html if you start the text with <html>text. In html you can create multiline text in colors and different fonts.
| Properties | ||
|---|---|---|
| name | values | comment |
| id | * | Id of the object. Let it begin with BT_ |
| text |   | Text inside the button |
| font |   | To set an other font then defined in global |
| background |   | Id of a color used as the background |
| rolloverBackground |   | Id of a color used as the background if the mouse is over |
| foreground |   | Id of a color used as the textcolor |
| rolloverForeground |   | Id of a color used as the textcolor if the mouse is over |
| focusPainted | true false |
On focus a rectangle is drawn around the button |
| contentAreaFilled | true false |
Paint the region around the text on click |
| visible | true false | Set to false will hide the button. |
| enabled | true false | Enables or disables the component. |
| focusText |   | Text will be shown when the button has the focus. |
| rolloverText |   | Text will be shown when mouse is over the button. |
| pressedText |   | Text will be shown when the button is pressed. |
| icon |   | File for creating an ImageIcon |
| insets |   | An insets used to set the margins of the button |
| focusIcon |   | Icon will be shown when the button has the focus. |
| rolloverIcon |   | Icon will be shown when mouse is over the button. |
| pressedIcon |   | Icon will be shown when the button is pressed. |
| tooltip |   | Text in Tooltip |
| buttonConstraints |   | Constraints when added in GridBagLayout |
| horizontalAlignment | LEADING LEFT CENTER RIGHT TRAILING |
Sets the horizontal alignment of the icon and text. |
| verticalAlignment | CENTER TOP BOTTOM |
Sets the vertical alignment of the icon and text. |
| horizontalTextPosition | LEADING LEFT CENTER RIGHT TRAILING |
Sets the horizontal position of the text relative to the icon. |
| verticalTextPosition | CENTER TOP BOTTOM |
Sets the vertical position of the text relative to the icon. |
* = property you have to set; bold = default value
| Field Summary |
|---|
| Fields inherited from class com.cbse.jeasy.JEObject |
|---|
DEVELOPPING, INPUT_ERROR_DATE, INPUT_ERROR_LENGTH, INPUT_ERROR_MANDATORY, INPUT_ERROR_PARSE, INPUT_ERROR_RANGE, INPUT_ERROR_TIME, INPUT_ERRORS, NO_INPUT_ERROR, RUNNING |
| Constructor Summary | |
|---|---|
JEButton(java.lang.String s)
Reads the properties from a string |
|
| Method Summary | |
|---|---|
void |
doClick()
Programmatically perform a "click". |
void |
doClick(int pressTime)
Programmatically perform a "click". |
void |
focusGained(java.awt.event.FocusEvent e)
|
void |
focusLost(java.awt.event.FocusEvent e)
|
boolean |
getAntialiasing()
Gets the anialialising flag |
java.awt.Color |
getBackground()
|
javax.swing.JButton |
getButton()
Gets the button |
JEButton |
getClonedButton()
Gets a new instance of the JButton. |
javax.swing.JComponent |
getComponent()
Gets the JComponent based on this JEasy Object |
java.awt.Font |
getFont()
Gets the font |
java.awt.Color |
getForeground()
|
java.awt.GradientPaint |
getGradientPaint()
|
java.lang.String |
getIcon()
Gets the icon |
java.awt.Insets |
getMargin()
|
java.awt.Color |
getRolloverBackground()
|
java.awt.Color |
getRolloverForeground()
|
java.lang.String |
getText()
Gets the text of the button |
java.awt.TexturePaint |
getTexturePaint()
|
boolean |
isVisible()
False if the Datafield should not be shown in a Table or Panel |
void |
JEadd(java.awt.Container co)
Adds the JButton to a Container |
void |
JEadd(java.awt.Container co,
java.awt.LayoutManager lm)
Adds the JButton to a Container. |
void |
JEadd(java.lang.String border,
java.awt.Container co)
Adds the JButton to a Container with a BorderLayout |
void |
JEaddTab(javax.swing.JTabbedPane co,
java.awt.LayoutManager lm)
Adds the JButton to a JTabbedPane with its LayoutManager |
void |
keyPressed(java.awt.event.KeyEvent e)
|
void |
keyReleased(java.awt.event.KeyEvent e)
|
void |
keyTyped(java.awt.event.KeyEvent e)
|
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
setEnabled(boolean b)
Sets the button enabled or disabled |
void |
setGradientPaint(java.awt.GradientPaint gp)
|
void |
setText(java.lang.String s)
Sets the text of the button |
void |
setVisible(boolean bv)
setVisible of the label textfield and the button |
void |
start()
Creates jfc-Objects with the given properties. |
| Methods inherited from class com.cbse.jeasy.JEObject |
|---|
backupEntry, clear, deserializeValue, getApplet, getApplLocale, getCenter, getEast, getElementAt, getElementSize, getId, getJCallBack, getJClass, getLabel, getMode, getName, getNorth, getObjLocale, getParentId, getPreview, getProjectDirectory, getProperty, getRegisterText, getSouth, getStarted, getTitle, getType, getWest, getXMLtag, isEditable, isEnabled, isEnterprise, isProfessional, isStandard, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, removeProperties, removeProperty, restoreEntry, serializeValue, setApplet, setApplLocale, setEditable, setEditable, setEnabled, setFocus, setJCallBack, setMarkable, setMarkable, setMode, setObjLocale, setParentId, setPreview, setProjectDirectory, setProperty, setStarted, setVisible, wasEntryChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JEButton(java.lang.String s)
s - contains properties and valuesJE#PropertyString| Method Detail |
|---|
public void doClick(int pressTime)
pressTime - public void doClick()
public java.lang.String getText()
public void setText(java.lang.String s)
public javax.swing.JComponent getComponent()
getComponent in class JEObjectpublic java.lang.String getIcon()
public java.awt.Font getFont()
public javax.swing.JButton getButton()
public JEButton getClonedButton()
public java.awt.Color getBackground()
public java.awt.Color getRolloverBackground()
public java.awt.Color getForeground()
public java.awt.Color getRolloverForeground()
public java.awt.Insets getMargin()
public void setGradientPaint(java.awt.GradientPaint gp)
public java.awt.GradientPaint getGradientPaint()
public java.awt.TexturePaint getTexturePaint()
public void setEnabled(boolean b)
setEnabled in class JEObjectpublic void setVisible(boolean bv)
setVisible in class JEObjectpublic boolean isVisible()
isVisible in class JEObjectpublic boolean getAntialiasing()
public void start()
start in class JEObject
public void JEadd(java.awt.Container co,
java.awt.LayoutManager lm)
JEadd in class JEObjectContainer - where the JButton is added
public void JEadd(java.lang.String border,
java.awt.Container co)
JEadd in class JEObjectString - "North" "South" "West" "East" "Center"Container - where the JButton is addedpublic void JEadd(java.awt.Container co)
JEadd in class JEObjectContainer - where the JButton is added
public void JEaddTab(javax.swing.JTabbedPane co,
java.awt.LayoutManager lm)
JEaddTab in class JEObjectJTabbedPane - to hold the JEObjectLayoutManager - of the JTabbedPanepublic void focusGained(java.awt.event.FocusEvent e)
focusGained in interface java.awt.event.FocusListenerpublic void focusLost(java.awt.event.FocusEvent e)
focusLost in interface java.awt.event.FocusListenerpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void keyTyped(java.awt.event.KeyEvent e)
keyTyped in interface java.awt.event.KeyListenerpublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenerpublic void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListener
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||