|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.ui.MultiFrame
ucar.unidata.idv.ui.IdvWindow
public class IdvWindow
The window class used for the IDV. Really need to break this out into a window manager. This listens for window close operations and manages the bottom message bar/memory monitor/spinning wait icon.
| Field Summary | |
|---|---|
static String |
GROUP_CHOOSERS
The chooser components in this window |
static String |
GROUP_TOOLBARS
The toolbar components in this window |
| Constructor Summary | |
|---|---|
IdvWindow(String title,
IntegratedDataViewer theIdv)
Create the window |
|
IdvWindow(String title,
IntegratedDataViewer theIdv,
boolean isAMainWindow)
Create the window |
|
| Method Summary | |
|---|---|
void |
addToGroup(Object groupKey,
Object comp)
An IdvWindow can hold a group of objects, identified by the groupKey. |
void |
addViewManager(ViewManager viewManager)
_more_ |
void |
destroy()
Destroy this window. |
void |
dispose()
Dispose of this window. |
protected boolean |
doClose()
Close this window. |
void |
endWait()
Stop spinning |
static IdvWindow |
findWindow(Component contents)
Find the IdvWindow that contains the window contents |
static IdvWindow |
getActiveWindow()
Get the current active window |
Object |
getComponent(String componentName)
The IdvWindow can hold a number of named components. |
List |
getComponentGroups()
|
List |
getComponents()
Get the list of components held by the xmlui |
JComponent |
getContents()
Get the contents |
List |
getGroup(Object groupKey)
Get the list of objects that are in the group. |
boolean |
getIsAMainWindow()
Get the IsAMainWindow property. |
static List |
getMainWindows()
Return the list of main windows currently in use. |
JLabel |
getMsgLabel()
Get the JLabel message label. |
static ImageIcon |
getNormalIcon()
Get the icon used to show normal state |
Object |
getPersistentComponent(Object key)
_more_ |
Hashtable |
getPersistentComponents()
Get the PersistentComponents property. |
String |
getSkinPath()
Get the path to the xml skin. |
String |
getType()
Get the Type property. |
String |
getUniqueId()
Get the UniqueId property. |
List |
getViewManagers()
Get the ViewManagers property. |
static ImageIcon |
getWaitIcon()
Get the icon used to show wait state (the spinning globe) |
JLabel |
getWaitLabel()
Get the label that we spin |
static ImageIcon |
getWaitOverIcon()
Get the icon used when mousing over the label in wait state (the beer bottles) |
static boolean |
getWaitState()
Get the global wait state |
static List |
getWindows()
Get all of the current windows. |
IdvXmlUi |
getXmlUI()
Get the xmlui object that created the gui in this window. |
boolean |
hasViewManagers()
Does this window contain any view managers |
void |
putPersistentComponent(Object key,
Object object)
_more_ |
void |
setComponent(String componentName,
Object component)
The IdvWindow can hold a number of named components. |
void |
setContents(JComponent contents)
Set the contents. |
void |
setIsAMainWindow(boolean value)
Set the IsAMainWindow property. |
static ImageIcon |
setNormalIcon(String path)
Get the icon used to show normal state |
void |
setPersistentComponents(Hashtable value)
Set the PersistenceComponents property. |
void |
setSkinPath(String b)
Set the path to the xml skin. |
void |
setTheViewManagers(List value)
Set the ViewManagers property. |
void |
setType(String value)
Set the Type property. |
void |
setUniqueId(String value)
Set the UniqueId property. |
void |
setWaitIcon(Icon icon)
Set the icon for the wait label. |
static ImageIcon |
setWaitIcon(String path)
Get the icon used to show wait state (the spinning globe) |
static ImageIcon |
setWaitOverIcon(String path)
Get the icon used when mousing over the label in wait state (the beer bottles) |
static void |
setWaitState(boolean waiting)
Set the global waitState flag |
void |
setWindowBounds(Rectangle r)
set the bounds of the window |
void |
setXmlUI(IdvXmlUi xmlUI)
Set the xmlui skin object |
void |
show()
Show the window if its ok. |
void |
showNormalCursor()
Show the normal cursor |
void |
showWaitCursor()
Show the wait cursor |
void |
startWait()
Start spinning |
String |
toString()
Override toString |
| Methods inherited from class ucar.unidata.ui.MultiFrame |
|---|
addWindowListener, getBounds, getComponent, getContainer, getContentPane, getFrame, getInternalFrame, getLocation, getSize, getState, getTitle, getWindow, isShowing, isVisible, pack, removeWindowListener, setBounds, setCursor, setDefaultCloseOperation, setIconImage, setJMenuBar, setLocation, setSize, setState, setTitle, setVisible, toFront, useDesktopPane |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String GROUP_CHOOSERS
public static final String GROUP_TOOLBARS
| Constructor Detail |
|---|
public IdvWindow(String title,
IntegratedDataViewer theIdv)
title - The window titletheIdv - The IDV
public IdvWindow(String title,
IntegratedDataViewer theIdv,
boolean isAMainWindow)
title - The window titletheIdv - The IDVisAMainWindow - Is this a main window| Method Detail |
|---|
public static IdvWindow getActiveWindow()
public static void setWaitState(boolean waiting)
waiting - waiting valuepublic static boolean getWaitState()
public JComponent getContents()
public void setContents(JComponent contents)
contents - window contentspublic void setWindowBounds(Rectangle r)
r - window boundspublic static IdvWindow findWindow(Component contents)
contents - Contents to look for
public void setXmlUI(IdvXmlUi xmlUI)
xmlUI - The xmlui skin objectpublic IdvXmlUi getXmlUI()
public String getSkinPath()
public void setSkinPath(String b)
b - The skin pathpublic String toString()
toString in class Objectpublic static ImageIcon getWaitIcon()
public static ImageIcon setWaitIcon(String path)
path - Set the wait icon to use
public void show()
show in class MultiFramepublic static ImageIcon getNormalIcon()
public static ImageIcon setNormalIcon(String path)
path - The path to the normal icon to use
public static ImageIcon getWaitOverIcon()
public static ImageIcon setWaitOverIcon(String path)
path - The path to the wait over icon to use
public JLabel getMsgLabel()
public void startWait()
public void endWait()
public void setWaitIcon(Icon icon)
icon - The wait icon.public JLabel getWaitLabel()
protected boolean doClose()
public void dispose()
dispose in class MultiFramepublic void destroy()
public static List getMainWindows()
public void setComponent(String componentName,
Object component)
componentName - The name or idcomponent - The component
public void putPersistentComponent(Object key,
Object object)
key - _more_object - _more_public Object getPersistentComponent(Object key)
key - _more_
public List getComponentGroups()
public void addToGroup(Object groupKey,
Object comp)
groupKey - The group key. Usually a String namecomp - The object (ususally a Component) to add to the grouppublic List getGroup(Object groupKey)
groupKey - The group key
public List getComponents()
public Object getComponent(String componentName)
componentName - The name or id
public static List getWindows()
public boolean hasViewManagers()
public void setTheViewManagers(List value)
value - The new value for ViewManagerspublic void addViewManager(ViewManager viewManager)
viewManager - _more_public List getViewManagers()
public void setUniqueId(String value)
value - The new value for UniqueIdpublic String getUniqueId()
public void setIsAMainWindow(boolean value)
value - The new value for IsAMainWindowpublic boolean getIsAMainWindow()
public void showWaitCursor()
public void showNormalCursor()
public void setType(String value)
value - The new value for Typepublic String getType()
public void setPersistentComponents(Hashtable value)
value - The new value for PersistenceComponentspublic Hashtable getPersistentComponents()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||