com.sun.dtv.lwuit
Class AWTComponent
java.lang.Object
com.sun.dtv.lwuit.Component
com.sun.dtv.lwuit.AWTComponent
- All Implemented Interfaces:
- Animation, StyleListener, Animated
public final class AWTComponent
- extends Component
This class extends the Component
class as a special
variant, which delegates painting to a wrapped java.awt.Component
.
While in general LWUIT has it's own component model without usage of the AWT
mechanisms, this class opens the possibility to integrate AWT components into
a LWUIT controlled container.
Please be aware that it remains not recommended to mix LWUIT and AWT components
in one application, as this may cause serious layout problems and is difficult
to handle. On the other hand, there may be situations making the integration
of AWT components necessary, e.g. for the usage of legacy AWT components.
The following code snippet illustrates how to handle those situations:
import com.legacy.LegacyAWTComponent;
import com.sun.dtv.lwuit.Container;
import com.sun.dtv.lwuit.AWTComponent;
...
Container lwuitContainer = new COntainer(...);
...
LegacyAWTComponent legacyCmp = new LegacyAWTComponent();
lwuitCOntainer.addComponent(new AWTComponent(legacyCmp));
Methods inherited from class com.sun.dtv.lwuit.Component |
addFocusListener, animate, calcPreferredSize, contains, deinitialize, getAbsoluteX, getAbsoluteY, getAnimationMode, getBaseline, getBaselineResizeBehavior, getBottomGap, getBounds, getClientProperty, getComponentForm, getDelay, getHeight, getNextFocusDown, getNextFocusLeft, getNextFocusRight, getNextFocusUp, getParent, getPosition, getPreferredSize, getRepetitionMode, getScrollAnimationSpeed, getScrollX, getScrollY, getSideGap, getStyle, getUIID, getWidth, getX, getY, handlesInput, hasFocus, initialize, isEnabled, isFocusable, isFocusPainted, isInitialized, isRunning, isScrollableX, isScrollableY, isScrollVisible, isSmoothScrolling, isVisible, jumpTo, keyPressed, keyReleased, keyRepeated, longKeyPress, paint, paintBackgrounds, paintComponent, paintComponent, pointerDragged, pointerPressed, pointerReleased, putClientProperty, refreshTheme, removeFocusListener, repaint, repaint, requestFocus, scrollRectToVisible, setAnimationMode, setCellRenderer, setDelay, setEnabled, setFocus, setFocusable, setFocusPainted, setHandlesInput, setHeight, setInitialized, setIsScrollVisible, setNextFocusDown, setNextFocusLeft, setNextFocusRight, setNextFocusUp, setPreferredSize, setRepetitionMode, setScrollAnimationSpeed, setScrollX, setScrollY, setShouldCalcPreferredSize, setSize, setSmoothScrolling, setStyle, setUIID, setVisible, setWidth, setX, setY, start, stop, styleChanged, toString |
AWTComponent
public AWTComponent(Component component)
- Constructs an instance of
AWTComponent
, wrapping
the specified java.awt.Component
.
- Parameters:
component
- the java.awt.Component
to be wrapped
Copyright © 2008-2009 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All rights reserved.
U.S. Government Rights - Commercial software. Government users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its supplements. Sun, Sun Microsystems, the Sun logo and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.Products covered by and information contained in this service manual are controlled by U.S. Export Control laws and may be subject to the export or import laws in other countries. Nuclear, missile, chemical biological weapons or nuclear maritime end uses or end users, whether direct or indirect, are strictly prohibited. Export or reexport to countries subject to U.S. embargo or to entities identified on U.S. export exclusion lists, including, but not limited to, the denied persons and specially designated nationals lists is strictly prohibited.
DOCUMENTATION IS PROVIDED AS IS AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.
Use of this document is subject to license terms.