public class UIFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static URL |
getDefaultIcon() |
static ImageIcon |
getDefaultImageIcon() |
static Properties |
getFileDialogPersistence() |
static org.xnap.commons.i18n.I18n |
getI18n() |
static Window |
getMainFrame() |
static SIFDialog |
getSimpleDialog(UIPanel panel) |
static SIFDialog |
getSimpleDialog(UIPanel panel,
boolean b) |
static SIFDialog |
getSimpleDialog(UIPanel panel,
Window owner) |
static SIFDialog |
getSimpleDialog(UIPanel panel,
Window owner,
boolean okCancel) |
static SIFWizard |
getWizard(UIPanel[] panels) |
static void |
loadState(File sifWorkspaceFolder)
Sif load persistence information, like current folder in dialogs
|
static void |
saveState(File sifWorkspaceFolder)
Sif load persistence information, like current folder in dialogs
|
static void |
setDefaultIcon(URL iconURL) |
static void |
setDefaultImageIcon(ImageIcon icon) |
static void |
setMainFrame(Window wnd) |
static boolean |
showApplyDialog(UIPanel panel,
ActionListener applyListener,
boolean modal)
Builds an apply dialog.
|
static boolean |
showDialog(UIPanel panel)
Create a dialog and specify if the dialog shows the ok cancel buttons
and on top of all swing GUI.
|
static boolean |
showDialog(UIPanel[] panels) |
static boolean |
showDialog(UIPanel[] panels,
boolean okCancel) |
static boolean |
showDialog(UIPanel[] panels,
boolean okCancel,
boolean onTop)
Create a dialog and specify if the dialog shows the ok cancel buttons
and if its on top of all swing GUI.
|
static boolean |
showDialog(UIPanel panel,
boolean okCancel,
boolean onTop)
Create a dialog and specify if the dialog shows the ok cancel buttons
and if its on top of all swing GUI.
|
static void |
showOkDialog(UIPanel panel)
Create a dialog with ok button on top of all swing GUI.
|
static boolean |
showWizard(SIFWizard wiz)
Show the given wizard as a modal, on top and visible frame.
|
public static void loadState(File sifWorkspaceFolder) throws IOException
sifWorkspaceFolder - Folder where to load SIF persistence dataIOExceptionpublic static void saveState(File sifWorkspaceFolder) throws IOException
sifWorkspaceFolder - Folder where to save SIF persistence dataIOExceptionpublic static Properties getFileDialogPersistence()
public static SIFDialog getSimpleDialog(UIPanel panel, Window owner, boolean okCancel)
public static boolean showDialog(UIPanel[] panels)
public static boolean showDialog(UIPanel[] panels, boolean okCancel)
public static boolean showDialog(UIPanel[] panels, boolean okCancel, boolean onTop)
panels - okCancel - onTop - public static boolean showApplyDialog(UIPanel panel, ActionListener applyListener, boolean modal)
panel - The main panel of the dialogapplyListener - The action associated to the Apply buttonpublic static boolean showWizard(SIFWizard wiz)
wiz - The wizard to be displayed.public static boolean showDialog(UIPanel panel, boolean okCancel, boolean onTop)
panel - okCancel - onTop - public static boolean showDialog(UIPanel panel)
panel - public static void showOkDialog(UIPanel panel)
panel - public static URL getDefaultIcon()
public static ImageIcon getDefaultImageIcon()
public static void setDefaultIcon(URL iconURL)
public static void setDefaultImageIcon(ImageIcon icon)
public static void setMainFrame(Window wnd)
public static Window getMainFrame()
public static org.xnap.commons.i18n.I18n getI18n()
Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.