public class GaugeControllerAdapter extends ControllerAdapter implements GaugeController, java.beans.PropertyChangeListener
| Modifier and Type | Field and Description |
|---|---|
protected int |
m_currentComponentHandle |
protected ComponentHandle |
m_currentHandle |
protected java.awt.Cursor |
m_cursor |
protected Gauge |
m_gauge |
protected boolean |
m_isCursorOnResizeHandle |
protected GaugeModel |
m_model |
protected int |
m_resizeCursorValue |
protected int |
m_selectedComponentHandle |
protected ComponentHandle |
m_selectedObject |
DEBUGlistenerList, m_defaultCursor, m_drillCursor, m_eResizeCursor, m_horzSplitCursor, m_isWaitCursor, m_moveCursor, m_neResizeCursor, m_noDropCursor, m_nResizeCursor, m_nwResizeCursor, m_selectCursor, m_seResizeCursor, m_sResizeCursor, m_swResizeCursor, m_textCursor, m_vertSplitCursor, m_viewPositionX, m_viewPositionY, m_viewSizeHeight, m_viewSizeSet, m_viewSizeWidth, m_waitCursor, m_wResizeCursor, mouseEventDEFAULT_CURSOR, DRILL_CURSOR, E_RESIZE_CURSOR, HORIZONTAL_SPLIT_CURSOR, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NO_DROP_CURSOR, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SELECT_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, VERTICAL_SPLIT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR| Constructor and Description |
|---|
GaugeControllerAdapter(Gauge gauge,
GaugeModel gaugeModel)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp()
Removes this
GaugeController from the Perspective list of
listeners. |
ComponentHandle |
getSelectedObject()
Retrieves the selected component.
|
void |
keyPressed(java.awt.event.KeyEvent e)
Invoked when a key has been pressed.
|
void |
keyReleased(java.awt.event.KeyEvent e)
Invoked when a key has been released.
|
void |
keyTyped(java.awt.event.KeyEvent e)
Invoked when a key has been typed.
|
void |
mouseClicked(java.awt.event.MouseEvent e)
Invoked when the mouse button has been clicked (pressed
and released) on a component.
|
void |
mouseDragged(java.awt.event.MouseEvent e)
Invoked when a mouse button is pressed on a component and then dragged.
|
void |
mouseEntered(java.awt.event.MouseEvent e)
Invoked when the mouse enters a component.
|
void |
mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse exits a component.
|
void |
mouseMoved(java.awt.event.MouseEvent e)
Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.
|
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on a component.
|
void |
pivot(oracle.bali.ewt.pivot.PagingPivotEvent e)
A pivot move event happened
|
void |
propertyChange(java.beans.PropertyChangeEvent pce) |
protected void |
setCursor(java.awt.Component component,
java.awt.Cursor c) |
void |
setCursorType(java.awt.Cursor c,
int type)
Specifies a cursor for a particular purpose.
|
void |
setGaugeCursor(int id)
Specifies the type of cursor that is displayed in the gauge.
|
void |
setSelectedObject(ComponentHandle c)
Selects a component on the gauge.
|
void |
setWaitCursorForced(boolean yesNo)
Specifies whether the view is forced to display a wait cursor.
|
void |
swap(oracle.bali.ewt.pivot.PagingPivotEvent e)
A pivot swap event happened
|
changeTitleSelectedState, createComponentFromPageItem, firePopupTriggered, firePopupTriggering, focusGained, focusLost, getPopupManager, getRolloverTextManager, processPopup, processViewMouseEvent, setPopupManager, setRolloverTextManageraddControllerListener, addViewFocusListener, addViewKeyListener, addViewMouseListener, addViewMouseMotionListener, fireComponentSelected, fireComponentSelecting, fireComponentSized, fireComponentSizing, getCursorType, getMouseEvent, getNonDataComponent, getSelectionManager, isWaitCursorForced, processViewFocusEvent, processViewKeyEvent, processViewMouseMotionEvent, removeControllerListener, removeViewFocusListener, removeViewKeyListener, removeViewMouseListener, removeViewMouseMotionListener, setSelectionManagerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPopupManager, getRolloverTextManager, setPopupManager, setRolloverTextManageraddControllerListener, addViewFocusListener, addViewKeyListener, addViewMouseListener, addViewMouseMotionListener, getCursorType, isWaitCursorForced, removeControllerListener, removeViewFocusListener, removeViewKeyListener, removeViewMouseListener, removeViewMouseMotionListenerprotected Gauge m_gauge
protected GaugeModel m_model
protected int m_selectedComponentHandle
protected int m_currentComponentHandle
protected boolean m_isCursorOnResizeHandle
protected int m_resizeCursorValue
protected ComponentHandle m_currentHandle
protected ComponentHandle m_selectedObject
protected java.awt.Cursor m_cursor
public GaugeControllerAdapter(Gauge gauge, GaugeModel gaugeModel)
gauge - The gauge that uses this Controller.gaugeModel - The model that gauge is using.public void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenerkeyPressed in class ViewControllerAdaptere - event infopublic void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListenerkeyReleased in class ViewControllerAdaptere - event infopublic void keyTyped(java.awt.event.KeyEvent e)
keyTyped in interface java.awt.event.KeyListenerkeyTyped in class ViewControllerAdaptere - event infopublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenermouseClicked in class ViewControllerAdaptere - event info@Concealed public void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenermousePressed in class ControllerAdaptere - event infopublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenermouseReleased in class ViewControllerAdaptere - event infopublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenermouseEntered in class ViewControllerAdaptere - event infopublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenermouseExited in class ViewControllerAdaptere - event infopublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenermouseDragged in class ViewControllerAdaptere - event infopublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenermouseMoved in class ViewControllerAdaptere - event infopublic void pivot(oracle.bali.ewt.pivot.PagingPivotEvent e)
e - paging pivot eventpublic void swap(oracle.bali.ewt.pivot.PagingPivotEvent e)
e - paging pivot eventprotected void setCursor(java.awt.Component component,
java.awt.Cursor c)
public void setSelectedObject(ComponentHandle c)
setSelectedObject in interface GaugeControllerc - The component to select.public ComponentHandle getSelectedObject()
getSelectedObject in interface GaugeControllernull
if the selected component is a PFJ component.public void setCursorType(java.awt.Cursor c,
int type)
setCursorType in interface ViewControllersetCursorType in class ViewControllerAdapterc - The Cursor that should appear for type.type - A constant that specifies the type of cursor that
c is.ViewController.DEFAULT_CURSOR,
ViewController.DRILL_CURSOR,
ViewController.E_RESIZE_CURSOR,
ViewController.HORIZONTAL_SPLIT_CURSOR,
ViewController.MOVE_CURSOR,
ViewController.N_RESIZE_CURSOR,
ViewController.NE_RESIZE_CURSOR,
ViewController.NO_DROP_CURSOR,
ViewController.NW_RESIZE_CURSOR,
ViewController.S_RESIZE_CURSOR,
ViewController.SE_RESIZE_CURSOR,
ViewController.SELECT_CURSOR,
ViewController.SW_RESIZE_CURSOR,
ViewController.TEXT_CURSOR,
ViewController.VERTICAL_SPLIT_CURSOR,
ViewController.W_RESIZE_CURSOR,
ViewController.WAIT_CURSORpublic void setWaitCursorForced(boolean yesNo)
setWaitCursorForced in interface ViewControllersetWaitCursorForced in class ViewControllerAdapteryesNo - true to display the wait cursor.
false do not display the wait cursor.@Concealed public void propertyChange(java.beans.PropertyChangeEvent pce)
propertyChange in interface java.beans.PropertyChangeListenerpce - event infopublic void setGaugeCursor(int id)
id - The component over which the mouse is located.public void cleanUp()
GaugeController from the Perspective list of
listeners.
The gauge calls this method when someone changes the controller.cleanUp in interface ViewControllercleanUp in interface GaugeControllercleanUp in class ControllerAdapter