|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--amber.server.component.ComponentHandler
|
+--amber.server.component.PanelHandler
|
+--amber.server.panel.BasePanel
|
+--amber.server.panel.BaseFrame
This class is an extension to the BasePanel class and handles the extra requirements inherent in the fact that this class handles a window rather than a panel which lives inside some type of container such as an HTML page.
ApplicationInterface,
BasePanel, Serialized Form| Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
| Field Summary | |
protected java.lang.String |
title
|
| Fields inherited from class amber.server.panel.BasePanel |
autoDoLayoutState, xOffset, yOffset |
| Fields inherited from class amber.server.component.PanelHandler |
AddOperation, autoRedrawState, drawOperations, InsertOperation, PaintPanel, PanelNextAvailableCommand, postInPacketListeners, preInPacketListeners, RemoveAllOperations, RemoveOperation, ReplaceOperation, SetBorder, SetReDraw |
| Fields inherited from class amber.server.component.ComponentHandler |
actionCommand, active, ApplicationId, CancelReturn, dataEncoder, DefaultTimeout, enabledState, encoderBytes, id, InvalidId, MaximumId, NoReturn, OkCancelType, OkReturn, OkType, OkYesReturn, parentPage, responsePackets, timeoutValue, UnchangeableInvalidId, visibleState, YesNoCancelType, YesNoType, YesReturn |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface amber.server.panel.ContainerHandler |
AddComponent, AutoDoLayout, ForceDoLayout, GetInsets, GetInsetsResponse, NextAvailableCommand, RemoveAllComponents, RemoveComponent, SetBounds |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
BaseFrame()
Default constructor. |
|
BaseFrame(ApplicationInterface pageHandler)
The initialising constructor. |
|
BaseFrame(ApplicationInterface pageHandler,
PanelTemplateGroup panelGroup,
boolean selectedState)
The initialising constructor. |
|
BaseFrame(int id,
ApplicationInterface pageHandler)
The initialising constructor. |
|
BaseFrame(int id,
int baseOffset,
ApplicationInterface pageHandler)
The initialising constructor. |
|
BaseFrame(int id,
int baseOffset,
ApplicationInterface pageHandler,
PanelTemplateGroup panelGroup,
boolean selectedState)
The initialising constructor. |
|
| Method Summary | |
java.lang.String |
getPanelType()
This function returns the panel component to use with this class. |
java.lang.String |
getTitle()
This function gets the title in the frame caption. |
boolean |
isVisible()
This returns the current visible state of the frame. |
void |
setActive(boolean state)
This function tells the ComponentHandler that there is a corresponding remote component to communicate with and that the link is active. |
void |
setBounds(int x,
int y,
int width,
int height)
This is used to set the size and location of the corresponding remote frame. |
void |
setBounds(java.awt.Rectangle r)
This is used to set the size and location of the corresponding remote frame. |
void |
setInternalBounds(int x,
int y,
int width,
int height)
Resizes the internal panel in the frame window. |
void |
setInternalBounds(java.awt.Rectangle r)
Resizes the internal panel in the frame window. |
void |
setInternalLocation(int x,
int y)
Moves the internal panel in the frame window. |
void |
setInternalLocation(java.awt.Point p)
Moves the internal panel in the frame window. |
void |
setInternalSize(java.awt.Dimension d)
Resizes the internal panel in the frame window. |
void |
setInternalSize(int width,
int height)
Resizes the internal panel in the frame window. |
void |
setLocation(int x,
int y)
Moves the frame to the new location on the screen. |
void |
setLocation(java.awt.Point p)
Moves the frame to the new location on the screen. |
void |
setSize(java.awt.Dimension d)
Resizes this component to conform to the new size. |
void |
setSize(int width,
int height)
Resizes this component to conform to the new size. |
void |
setTitle(java.lang.String title)
This function sets the title in the frame caption. |
void |
setVisible(boolean state)
This function is called to make the corresponding remote frame visible or invisible. |
void |
toBack()
Sends the frame to the back. |
void |
toFront()
Brings the frame to the front. |
| Methods inherited from class java.awt.Component |
action, add, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getListeners, getLocale, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getToolkit, getTreeLock, getWidth, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, remove, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, reshape, resize, resize, setComponentOrientation, setDropTarget, setLocale, setName, show, show, size, toString, transferFocus, update, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface amber.server.panel.ContainerHandler |
canClose, fillControls, saveData |
| Field Detail |
protected java.lang.String title
| Constructor Detail |
public BaseFrame()
public BaseFrame(ApplicationInterface pageHandler)
pageHandler - The handle to the main ApplicationInterface which handles the functions of page overall.
residing on the browser.
public BaseFrame(ApplicationInterface pageHandler,
PanelTemplateGroup panelGroup,
boolean selectedState)
pageHandler - The handle to the main ApplicationInterface which handles the functions of page overall.
residing on the browser.panelGroup - PanelTemplateGroup class which is used to stitch several panels
onto one base panel.selectedState - boolean true if this is the selected panel template.
public BaseFrame(int id,
ApplicationInterface pageHandler)
id - The int containing the id of the corresponding remote component
residing on the browser.pageHandler - The handle to the main ApplicationInterface which handles the functions of page overall.
public BaseFrame(int id,
int baseOffset,
ApplicationInterface pageHandler)
id - The int containing the id of the corresponding remote component
residing on the browser.baseOffset - The int containing the base offset for the id's of the
internal panel components.pageHandler - The handle to the main ApplicationInterface which handles the functions of page overall.
public BaseFrame(int id,
int baseOffset,
ApplicationInterface pageHandler,
PanelTemplateGroup panelGroup,
boolean selectedState)
id - The int containing the id of the corresponding remote component
residing on the browser.baseOffset - The int containing the base offset for the id's of the
internal panel components.pageHandler - The handle to the main ApplicationInterface which handles the functions of page overall.panelGroup - PanelTemplateGroup class which is used to stitch several panels
onto one base panel.selectedState - boolean true if this is the selected panel template.| Method Detail |
public void setVisible(boolean state)
setVisible in class ComponentHandlerstate - boolean true if the form is to be visible.java.lang.RuntimeException - containing the error information.public boolean isVisible()
isVisible in class ComponentHandler
public void setBounds(int x,
int y,
int width,
int height)
setBounds in class PanelHandlerx - int x location of the top left corner.y - int y location of the top left corner.width - int width of the frame.height - int height of the frame.java.lang.RuntimeException - containing the error information.public void setBounds(java.awt.Rectangle r)
setBounds in class PanelHandlerr - Rectangle containing frame coordinates.java.lang.RuntimeException - containing the error information.public void setTitle(java.lang.String title)
title - String title for the window frame.java.lang.RuntimeException - containing the error information.
public void setActive(boolean state)
throws ComponentHandlerException
setActive in class BasePanelstate - boolean state which when true enables the component.
This is the default.ComponentHandlerException - with any errors.public java.lang.String getTitle()
java.lang.RuntimeException - containing the error information.public java.lang.String getPanelType()
getPanelType in class PanelHandlerpublic void setLocation(java.awt.Point p)
setLocation in class PanelHandlerp - Point containing the new location.
public void setLocation(int x,
int y)
setLocation in class PanelHandlerx - int x coordinate of the top left corner.y - int y coordinate of the top left corner.public void setSize(java.awt.Dimension d)
setSize in class PanelHandlerd - Dimension containing the new size.
public void setSize(int width,
int height)
setSize in class PanelHandlerwidth - int width of new size.height - int height of new size.
public void setInternalLocation(java.awt.Point p)
throws ComponentHandlerException
p - Point with the specified location.ComponentHandlerException - with any errors.
public void setInternalLocation(int x,
int y)
throws ComponentHandlerException
x - int x position of top left corner.y - int y position of top left corner.ComponentHandlerException - with any errors.
public void setInternalSize(java.awt.Dimension d)
throws ComponentHandlerException
d - Dimension with the specified bounds.ComponentHandlerException - with any errors.
public void setInternalSize(int width,
int height)
throws ComponentHandlerException
width - int width of new size.height - int height of new size.ComponentHandlerException - with any errors.
public void setInternalBounds(java.awt.Rectangle r)
throws ComponentHandlerException
r - Rectangle with the specified bounds.ComponentHandlerException - with any errors.
public void setInternalBounds(int x,
int y,
int width,
int height)
throws ComponentHandlerException
x - int x position of top left corner.y - int y position of top left corner.width - int width of new size.height - int height of new size.ComponentHandlerException - with any errors.public void toFront()
public void toBack()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||