|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.embl.ebi.escience.scuflui.shared.UIUtils
public class UIUtils
Contains utility methods to deal with opening windows and suchlike in a way that makes no assumptions about the existance of a JDesktop pane.
| Nested Class Summary | |
|---|---|
static interface |
UIUtils.FrameCreator
Implement this interface and set the DEFAULT_FRAME_CREATOR field to change the behaviour of the windowing system used by the Taverna Workbench |
| Field Summary | |
|---|---|
static UIUtils.FrameCreator |
DEFAULT_FRAME_CREATOR
|
| Constructor Summary | |
|---|---|
UIUtils()
|
|
| Method Summary | |
|---|---|
static void |
createFrame(javax.swing.JComponent rawComponent,
int posX,
int posY,
int width,
int height)
As for the method above but allows a non-ScuflUIComponent JComponent. |
static void |
createFrame(ScuflModel targetModel,
UIComponentSPI targetComponent,
int posX,
int posY,
int sizeX,
int sizeY)
Create a top level window using the configured default frame creator. |
static java.awt.Component |
getActionEventParentWindow(java.awt.event.ActionEvent ae)
Determines, if possible, the parent window of an ActionEvent. |
static void |
launchBrowser(java.lang.String address)
Launches the address in a browser. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static UIUtils.FrameCreator DEFAULT_FRAME_CREATOR
| Constructor Detail |
|---|
public UIUtils()
| Method Detail |
|---|
public static void createFrame(ScuflModel targetModel,
UIComponentSPI targetComponent,
int posX,
int posY,
int sizeX,
int sizeY)
This method will handle the appropriate logic to bind to and unbind from a model when given an implementation of the ScuflUIComponent interface. It's worth noting that, in addition to implementing this interface, any object passed in as the target component must also be a subclass of JComponent!
public static void createFrame(javax.swing.JComponent rawComponent,
int posX,
int posY,
int width,
int height)
public static java.awt.Component getActionEventParentWindow(java.awt.event.ActionEvent ae)
ae -
public static void launchBrowser(java.lang.String address)
address - to launch
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||