ElegantJ Data Entry Masks Java API Specification v1.1

com.elegantj.awt.panel
Class AWTPanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended bycom.elegantj.awt.panel.AWTPanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.io.Externalizable, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
Direct Known Subclasses:
ExtCalendar

public class AWTPanel
extends java.awt.Panel
implements java.io.Externalizable

This class encapsulates the functionality of the awt Panel

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 com.elegantj.editors.C1 c1
           
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
AWTPanel()
          Constructs the AWTPanel
AWTPanel(java.awt.LayoutManager layout)
          Constructs the AWTPanel with the specified layout
 
Method Summary
 java.awt.Component add(java.awt.Component component)
          Method which overrides the add of the Panel
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
          Adds the property change listener
 void firePropertyChange(java.lang.String property, java.lang.Object oldValue, java.lang.Object newValue)
          Fires the property change
 AWTTitleBorder getBorder()
          Method which returns the border of the AWTPanel
 java.awt.Insets getInsets()
          Method whichs returns the insets of the AWTPanel
 java.awt.LayoutManager getLayout()
          Method which returns the layout of the AWTPanel
 java.lang.String getLicenseKey()
          Returns the license key of the bean
 java.util.Locale getLocale()
          Method which returns the locale of the AWTPanel
 java.awt.Dimension getMinimumSize()
          Returns the Minimum size of the panel.
 java.awt.Dimension getPreferredSize()
          Returns the preferred size of the panel.
 void paint(java.awt.Graphics g)
          Method which overrides the paint
 void readExternal(java.io.ObjectInput in)
          Method which implements the readExternal
 void remove(int n)
          Method which removes the component at the nth position
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
          Removes the property change listener
 void setBackground(java.awt.Color background)
          Method which sets the background color for the AWTPanel
 void setBorder(AWTTitleBorder awtTitleBorder)
          Method which sets the border for the AWTPanel this method is responsible to sets the insets of the AWTPanel
 void setBounds(int x, int y, int width, int height)
          Method which sets the bounds of the AWTPanel
 void setCursor(java.awt.Cursor cursor)
          Method which sets the cursor for the AWTPanel
 void setEnabled(boolean bEnabled)
          Method which sets the enability of the AWTPanel
 void setFont(java.awt.Font font)
          Method which sets the font for the AWTPanel
 void setForeground(java.awt.Color foreground)
          Method which sets the foreground color for the AWTPanel
 void setInsets(java.awt.Insets insets)
          Method which sets the insets for the AWTPanel
 void setLayout(java.awt.LayoutManager layout)
          Method which sets the layout of the AWTPanel
 void setLicenseKey(java.lang.String licenseKey)
          Methods which sets the license key
 void setLocale(java.util.Locale locale)
          Method which sets the locale for the AWTPanel
protected  void setParentSize(int w, int h)
          Used internally.
 void setVisible(boolean bVisible)
          Method which sets the visibility for the AWTPanel
 void showCard(java.awt.Component c)
          Method which shows the component out of the no of components were added to the AWTPanel only when the card layout is applied to the AWTPanel
 void writeExternal(java.io.ObjectOutput out)
          Method which implements the writeExternal
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getListeners, getMaximumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBounds, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

c1

public transient com.elegantj.editors.C1 c1
Constructor Detail

AWTPanel

public AWTPanel()
Constructs the AWTPanel


AWTPanel

public AWTPanel(java.awt.LayoutManager layout)
Constructs the AWTPanel with the specified layout

Parameters:
layout - The layout manager
Method Detail

setLayout

public void setLayout(java.awt.LayoutManager layout)
Method which sets the layout of the AWTPanel

Parameters:
layout - the layout of the AWTPanel

getLayout

public java.awt.LayoutManager getLayout()
Method which returns the layout of the AWTPanel

Returns:
The layout of the AWTPanel

add

public java.awt.Component add(java.awt.Component component)
Method which overrides the add of the Panel

Parameters:
component - The component to be added

remove

public void remove(int n)
            throws java.lang.ArrayIndexOutOfBoundsException
Method which removes the component at the nth position

Parameters:
n - The position of the component to be removed
Throws:
java.lang.ArrayIndexOutOfBoundsException

showCard

public void showCard(java.awt.Component c)
Method which shows the component out of the no of components were added to the AWTPanel only when the card layout is applied to the AWTPanel


setBorder

public void setBorder(AWTTitleBorder awtTitleBorder)
Method which sets the border for the AWTPanel this method is responsible to sets the insets of the AWTPanel

Parameters:
awtTitleBorder - the border for the AWTPanel

getBorder

public AWTTitleBorder getBorder()
Method which returns the border of the AWTPanel

Returns:
the border of the AWTPanel

setFont

public void setFont(java.awt.Font font)
Method which sets the font for the AWTPanel

Parameters:
font - The font for the AWTPanel

setBackground

public void setBackground(java.awt.Color background)
Method which sets the background color for the AWTPanel

Parameters:
background - The background color for the AWTPanel

setForeground

public void setForeground(java.awt.Color foreground)
Method which sets the foreground color for the AWTPanel

Parameters:
foreground - The foreground color for the AWTPanel

setParentSize

protected void setParentSize(int w,
                             int h)
Used internally. Resizes the parent to w, h. Works only while design mode.

Parameters:
w - The width.
h - The height.

setInsets

public void setInsets(java.awt.Insets insets)
Method which sets the insets for the AWTPanel

Parameters:
insets - the insets for the AWTPanel

getInsets

public java.awt.Insets getInsets()
Method whichs returns the insets of the AWTPanel

Returns:
The insets of the AWTPanel

setLocale

public void setLocale(java.util.Locale locale)
Method which sets the locale for the AWTPanel

Parameters:
locale - The locale for the AWTPanel

getLocale

public java.util.Locale getLocale()
Method which returns the locale of the AWTPanel

Returns:
The locale of the AWTPanel

setCursor

public void setCursor(java.awt.Cursor cursor)
Method which sets the cursor for the AWTPanel

Parameters:
cursor - The cursor for the AWTPanel

setBounds

public void setBounds(int x,
                      int y,
                      int width,
                      int height)
Method which sets the bounds of the AWTPanel

Parameters:
x - The x coordinate of the AWTPanel
y - The y coordinate of the AWTPanel
width - The width of the of the AWTPanel
height - The height of the AWTPanel

setVisible

public void setVisible(boolean bVisible)
Method which sets the visibility for the AWTPanel

Parameters:
bVisible - the visibility for the AWTPanel

setEnabled

public void setEnabled(boolean bEnabled)
Method which sets the enability of the AWTPanel

Parameters:
bEnabled - the enability of the AWTPanel

setLicenseKey

public void setLicenseKey(java.lang.String licenseKey)
Methods which sets the license key


getLicenseKey

public java.lang.String getLicenseKey()
Returns the license key of the bean

Returns:
The license key of the bean

getPreferredSize

public java.awt.Dimension getPreferredSize()
Returns the preferred size of the panel.

Returns:
the preferred dimension.

getMinimumSize

public java.awt.Dimension getMinimumSize()
Returns the Minimum size of the panel.

Returns:
the minimum dimension.

paint

public void paint(java.awt.Graphics g)
Method which overrides the paint


addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds the property change listener

Parameters:
l - The property change listener

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes the property change listener

Parameters:
l - The property change listener

firePropertyChange

public void firePropertyChange(java.lang.String property,
                               java.lang.Object oldValue,
                               java.lang.Object newValue)
Fires the property change

Parameters:
property - The name of the property
oldValue - The old value
newValue - The new value

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Method which implements the writeExternal

Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Method which implements the readExternal

Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

ElegantJ Data Entry Masks Java API Specification v1.1

Submit a bug or feature

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjbeans.com
All Rights Reserved.