|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvanetsim.gui.helpers.ButtonCreator
public final class ButtonCreator
| Constructor Summary | |
|---|---|
ButtonCreator()
|
|
| Method Summary | |
|---|---|
static javax.swing.JButton |
getJButton(java.lang.String imageName,
java.lang.String command,
java.lang.String altString,
java.awt.event.ActionListener listener)
Convenience method to get a JButton with an image on it. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ButtonCreator()
| Method Detail |
|---|
public static javax.swing.JButton getJButton(java.lang.String imageName,
java.lang.String command,
java.lang.String altString,
java.awt.event.ActionListener listener)
imageName - the filename of the image relative to the vanetsim/images directorycommand - a command string which can be used to track events in actionPerformed()altString - an alternative string to display on the button when the original image can't be loaded and as a tooltiplistener - an ActionListener which performs actions on button clicks
JButton created
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||