|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthalo.userinterface.gui.guitools.GuiTools
public class GuiTools
Class containing several tools used for Graphical User Interface
Constructor Summary | |
---|---|
GuiTools()
|
Method Summary | |
---|---|
static java.lang.String |
alignLabel(java.lang.String txt,
int width,
java.awt.FontMetrics fm)
Formats a text for a dialog window |
static java.io.File |
displaySaveDialog(java.awt.Component comp,
java.lang.String text,
javax.swing.filechooser.FileFilter filter)
Displays a dialog that asks the user if he wants to save something into a file |
static void |
showBrowser(java.net.URI uri,
java.awt.Frame frame)
Opens a given URI in a user defined browser |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GuiTools()
Method Detail |
---|
public static java.lang.String alignLabel(java.lang.String txt, int width, java.awt.FontMetrics fm)
txt
- The original textwidth
- The width of the linefm
- The font metrics
public static java.io.File displaySaveDialog(java.awt.Component comp, java.lang.String text, javax.swing.filechooser.FileFilter filter)
comp
- The mother componenttext
- The text of the dialogfilter
- The file filter for the output file
public static void showBrowser(java.net.URI uri, java.awt.Frame frame)
uri
- URI to be openedframe
- Owner frame for which it is called
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |