|
Oracle Forms 9i Samples and Demos |
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--oracle.ewt.lwAWT.LWComponent | +--oracle.ewt.lwAWT.LWContainer | +--oracle.forms.ui.VBean | +--oracle.forms.demos.beans.GetClientInfo
This JavaBean fetches information from the local client system and
delivers it to Forms when the get_custom_property
builtin is invoked.
The class will need to be signed before being used in general purpose Forms applications since access to the System properties is an activity that is defined outside of the default Java sandbox.
Version 2 for Forms 9i can be used either as a PJC or as dynamically accessed JavaBean The ability to get the Java version and also any arbitary system property has also been added
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
Fields inherited from class oracle.forms.ui.VBean |
BEAN_NAME, DEBUG_MODE, DELIVER_EVENT, FOCUS_EVENT, KEY_EVENT |
Fields inherited from class oracle.ewt.lwAWT.LWComponent |
DEFAULT_BORDERPAINTER, DEFAULT_COLOR, DEFAULT_FONT, DEFAULT_PAINTER, MNEMONIC_CHAR_NONE, MNEMONIC_INDEX_NONE |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface oracle.forms.ui.IView |
DEFAULT_COLOR |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
GetClientInfo()
|
Method Summary | |
void |
GetClientInfo()
The constructor for the GetUsername JavaBean class |
java.lang.String |
getDate()
Obtain the date off of the local client machine. |
boolean |
getDebug()
|
java.lang.String |
getHostname()
Obtains the hostname of the local client machine |
java.lang.String |
getIPAddress()
Obtains the IP address of the local client machine |
java.lang.Object |
getProperty(oracle.forms.properties.ID pid)
Method in the IView interface that is called when the Forms Server wishes to obtain the value of a specific property from the class. |
java.lang.String |
getSystemProperty(java.lang.String systemProperty)
Obtains the named property from the client's JVM System properties |
java.lang.String |
getUsername()
Obtains the username from the client's JVM System properties with "user.name" |
void |
init(oracle.forms.handler.IHandler handler)
Method in the IView interface that is called when the component is first initialised from by the Forms Server. |
void |
log(java.lang.String msg)
Convenience method to display an message out to the console. |
static void |
main(java.lang.String[] args)
The test method which allows class to be run from the command line to determine if it is functioning correctly. |
void |
setDebug(boolean debugMode)
Sets debug mode |
Methods inherited from class oracle.forms.ui.VBean |
add, addCustomListener, addListener, addNotify, destroy, dispatchCustomEvent, getBean, getHandler, initializeBean, remove, removeAll, removeCustomListener, removeListener, repaint, setProperty |
Methods inherited from class oracle.ewt.lwAWT.LWContainer |
getBorderPainter, setBorderPainter |
Methods inherited from class oracle.ewt.lwAWT.LWComponent |
accessAccessibleContext, addAnyEventListener, addImpl, addPostKeyListener, addPreKeyListener, clipToParents, contains, convertInnerToOuterSize, convertInteriorToOuter, convertOuterToInterior, createAccessibleContext, disable, doLayout, enable, eventMatchesMnemonic, eventMatchesMnemonic, freezeRepaints, getAccessibleContext, getActualAlignment, getActualReadingDirection, getAlignment, getBackground, getBaseClassName, getBorderContext, getBorderInsets, getClientProperty, getColorScheme, getDefaultHelpProvider, getDefaultName, getDocumentSize, getDoubleBuffer, getEWTDropTarget, getFill, getFocusedComponent, getFont, getForeground, getGraphics, getHelpBook, getHelpProvider, getHelpTopic, getInnerBounds, getInnerHeight, getInnerOrigin, getInnerSize, getInnerWidth, getInsets, getInteriorAlignmentX, getInteriorAlignmentY, getInvalidateFlags, getLookAndFeel, getMnemonicChar, getMnemonicIndex, getMnemonicString, getName, getPageBounds, getPaintContext, getPaintData, getPaintState, getPrintPaintContext, getReadingDirection, getRepaintFlags, getToolTipValue, getUI, getUIClassID, getUIDefaults, hasFocus, hasGlobalFocus, hasMnemonicModifier, hasWindowFocus, hide, imageUpdate, insets, interiorContains, invalidate, invalidateAndRepaintIfNecessary, isActive, isBorderTransparent, isChildClipped, isClippedBySibling, isFocusTraversable, isInteriorTransparent, isLocaleDefaulted, isPaintPropagationRequired, isReadingDirectionDefaulted, isTransparent, paint, paintAll, paintImmediate, paintImmediate, paintImmediateInterior, paintImmediateInterior, paintImmediateUnclipped, paintInterior, paintOverChildren, paramString, pointInInterior, pointIsInChild, postProcessKey, print, printAll, printPage, processEvent, processEventImpl, processFocusEvent, processMouseEvent, putClientProperty, redispatchEvent, remove, removeAnyEventListener, removeClientProperty, removeNotify, removePostKeyListener, removePreKeyListener, repaint, repaintInterior, repaintInterior, reshape, setAlignment, setBackground, setColorScheme, setDefaultHelpProvider, setEnabled, setEWTDropTarget, setFill, setFont, setForeground, setHelpBook, setHelpProvider, setHelpTopic, setLocale, setLookAndFeel, setMnemonicChar, setMnemonicIndex, setReadingDirection, setToolTipValue, setToolTipValue, setUI, setVisible, shiftFrozenDamage, showHelp, unfreezeRepaints, update, updateAlignment, updateLocale, updateReadingDirection, updateUI, updateUI, updateUI |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, remove, removeContainerListener, setLayout, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFontMetrics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, inside, isDisplayable, isDoubleBuffered, isEnabled, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.forms.ui.IView |
contains, paint |
Methods inherited from interface oracle.ewt.lwAWT.VirtualComponent |
getBounds, getSize |
Constructor Detail |
public GetClientInfo()
Method Detail |
public void GetClientInfo()
public void init(oracle.forms.handler.IHandler handler)
init
in class oracle.forms.ui.VBean
a
- reference to the Handler object for this classpublic java.lang.Object getProperty(oracle.forms.properties.ID pid)
getProperty
in class oracle.forms.ui.VBean
pid
- the property to be returnedpublic java.lang.String getUsername()
public java.lang.String getSystemProperty(java.lang.String systemProperty)
public java.lang.String getHostname()
public java.lang.String getIPAddress()
public java.lang.String getDate()
public void setDebug(boolean debugMode)
should
- debugging to console be switched on?public boolean getDebug()
public void log(java.lang.String msg)
the
- message to be outputpublic static void main(java.lang.String[] args)
args[]
- the command line arguments
|
Oracle Forms 9i Samples and Demos |
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |