Deprecated API


Contents
Deprecated Classes
com.sun.lwuit.IndexedImage
          This class should no longer be referenced directly. Use Image.createIndexed instead 
com.sun.lwuit.MediaComponent
          replaced by VideoComponent, this class will be removed in the next version of LWUIT 
com.sun.lwuit.StaticAnimation
          this class shouldn't be referenced directly, use the Image base class for all functionality 
com.sun.lwuit.TabbedPane
          see Tabs.java 
 

Deprecated Methods
com.sun.lwuit.impl.android.AndroidImplementation.clearVirtualKeyboard()
            
com.sun.lwuit.animations.Transition.copy()
          use the version that accepts boolean instead 
com.sun.lwuit.Form.createCommandComponent(Vector)
          override MenuBar.createCommandComponent instead of this method (this method will be removed in next version) 
com.sun.lwuit.Form.createCommandList(Vector)
          override MenuBar.createCommandList instead of this method (this method will be removed in next version) 
com.sun.lwuit.animations.Motion.createFrictionMotion(int, float, float)
          use the version of this method that accepts a maximum value 
com.sun.lwuit.impl.LWUITImplementation.createVideoComponent(Object)
          replaced by the new video component 
com.sun.lwuit.plaf.LookAndFeel.drawTabbedPane(Graphics, TabbedPane)
            
com.sun.lwuit.plaf.DefaultLookAndFeel.drawTabbedPane(Graphics, TabbedPane)
            
com.sun.lwuit.plaf.LookAndFeel.drawTabbedPaneContentPane(TabbedPane, Graphics, Rectangle, Dimension, int, int, Dimension, int, int)
            
com.sun.lwuit.plaf.DefaultLookAndFeel.drawTabbedPaneContentPane(TabbedPane, Graphics, Rectangle, Dimension, int, int, Dimension, int, int)
            
com.sun.lwuit.TextArea.getAbsoluteAlignment()
          this method is redundant and no longer used 
com.sun.lwuit.TextArea.getAlignment()
          use Style.getAlignment instead 
com.sun.lwuit.Label.getAlignment()
          use Style.getAlignment instead 
com.sun.lwuit.util.Resources.getAnimation(String)
          use getImage(String) instead 
com.sun.lwuit.util.Resources.getAnimationResourceNames()
          use getImageResourceNames instead 
com.sun.lwuit.plaf.Style.getBackgroundAlignment()
          the functionality of this method is now covered by background type 
com.sun.lwuit.plaf.Border.getEmpty()
          use createEmpty instead 
com.sun.lwuit.plaf.Border.getFocusedInstance()
          use the getSelectedStyle() method in the component class 
com.sun.lwuit.Display.getKeyCode(int)
          this method doesn't work properly across device and is mocked up here mostly for the case of unit testing. Do not use it for anything other than that! Do not rely on getKeyCode(GAME_*) == keyCodeFromKeyEvent, this will never actually happen! 
com.sun.lwuit.impl.LWUITImplementation.getMediaTime(Object)
          replaced by the new video component 
com.sun.lwuit.plaf.LookAndFeel.getTabbedPaneCell(TabbedPane, String, Image, boolean, boolean, Style, Style, Style, int, int, Dimension, Dimension)
            
com.sun.lwuit.plaf.DefaultLookAndFeel.getTabbedPaneCell(TabbedPane, String, Image, boolean, boolean, Style, Style, Style, int, int, Dimension, Dimension)
            
com.sun.lwuit.impl.LWUITImplementation.getVideoHeight(Object)
          replaced by the new video component 
com.sun.lwuit.impl.LWUITImplementation.getVideoWidth(Object)
          replaced by the new video component 
com.sun.lwuit.util.Resources.isAnimation(String)
          animations are no longer distinguished from images in the resource file, use Image.isAnimation instead 
com.sun.lwuit.Command.isDefaultAction()
          this functionality is no longer supported use Form.setDefaultCommand() instead 
com.sun.lwuit.Dialog.isDialogTitleCompatibilityMode()
          this method will be removed and the functionality will be removed in the next version of LWUIT 
com.sun.lwuit.Component.isFocusPainted()
          this method would be removed in a future version of the API, manipulate getSelectedStyle() to achieve a similar look 
com.sun.lwuit.Display.isLightMode()
          this method is no longer used, it was too unreliable 
com.sun.lwuit.Display.isNativeCommands()
          use getCommandBehavior() == Display.COMMAND_BEHAVIOR_NATIVE 
com.sun.lwuit.plaf.LookAndFeel.isTouchMenus()
          use Display.getCommandBehavior() == Display.COMMAND_BEHAVIOR_TOUCH_MENU 
com.sun.lwuit.impl.android.AndroidImplementation.isVirtualKeyboardShowing()
            
com.sun.lwuit.impl.android.AndroidImplementation.isVirtualKeyboardShowingSupported()
            
com.sun.lwuit.impl.LWUITImplementation.paintVideo(Component, boolean, Object, Object, Object)
          replaced by the version that accepts the video component instance 
com.sun.lwuit.Image.scale(int, int)
          scale should return an image rather than modify the image in place use scaled(int, int) instead 
com.sun.lwuit.TextArea.setAlignment(int)
          use Style.setAlignment instead 
com.sun.lwuit.Label.setAlignment(int)
          use Style.setAlignment instead 
com.sun.lwuit.Button.setAlignment(int)
          use the Style alignment instead 
com.sun.lwuit.plaf.Style.setBackgroundAlignment(byte)
          the functionality of this method is now covered by background type 
com.sun.lwuit.plaf.Style.setBackgroundAlignment(byte, boolean)
          the functionality of this method is now covered by background type 
com.sun.lwuit.Form.setBgImage(Image)
          Use the style directly 
com.sun.lwuit.Form.setCommandListener(ActionListener)
          use add/removeCommandListener instead 
com.sun.lwuit.Command.setDefaultAction(boolean)
          this functionality is no longer supported use Form.setDefaultCommand() instead 
com.sun.lwuit.Dialog.setDialogTitleCompatibilityMode(boolean)
          this method will be removed and the functionality will be removed in the next version of LWUIT 
com.sun.lwuit.Display.setFlashGraphicsBug(boolean)
          this method is no longer supported use GameCanvasImplementation.setFlashGraphicsBug(f) instead 
com.sun.lwuit.plaf.Border.setFocusedInstance(Border)
          use the getSelectedStyle() method in the component class 
com.sun.lwuit.Component.setIsScrollVisible(boolean)
          replaced by setScrollVisible to match the JavaBeans spec 
com.sun.lwuit.Display.setLightMode(boolean)
          this method is no longer used, it was too unreliable 
com.sun.lwuit.List.setListCellRenderer(ListCellRenderer)
          use setRenderer instead, this method was deprecated to confirm better to JavaBean convention of having the getter/setter with the same name 
com.sun.lwuit.impl.LWUITImplementation.setMediaTime(Object, long)
          replaced by the new video component 
com.sun.lwuit.Display.setNativeCommands(boolean)
          use setCommandBehavior(Display.COMMAND_BEHAVIOR_NATIVE) 
com.sun.lwuit.impl.android.AndroidImplementation.setShowVirtualKeyboard(boolean)
            
com.sun.lwuit.Component.setStyle(Style)
            
com.sun.lwuit.Form.setTitleStyle(Style)
          this method doesn't take into consideration multiple styles 
com.sun.lwuit.plaf.LookAndFeel.setTouchMenus(boolean)
          use Display.setCommandBehavior(Display.COMMAND_BEHAVIOR_TOUCH_MENU) 
com.sun.lwuit.Component.setUnSelectedStyle(Style)
          use setUnselectedStyle (the case of the S character in this method is incorrect) 
com.sun.lwuit.impl.LWUITImplementation.setVideoFullScreen(Object, boolean)
          replaced by the new video component 
com.sun.lwuit.impl.LWUITImplementation.setVideoLoopCount(Object, int)
          replaced by the new video component 
com.sun.lwuit.impl.LWUITImplementation.setVideoVisible(Object, boolean)
          replaced by the new video component 
com.sun.lwuit.Form.showMenuDialog(Dialog)
          override MenuBar.showMenuDialog instead of this method (this method will be removed in next version) 
com.sun.lwuit.impl.LWUITImplementation.startVideo(Object, Object)
          replaced by the new video component 
com.sun.lwuit.impl.LWUITImplementation.stopVideo(Object, Object)
          replaced by the new video component 
 

Deprecated Constructors
com.sun.lwuit.Command(String, boolean)
          this functionality is no longer supported use Form.setDefaultCommand() instead 
com.sun.lwuit.Command(String, int, boolean)
          this functionality is no longer supported use Form.setDefaultCommand() instead 
com.sun.lwuit.IndexedImage(int, int, int[], byte[])
          use Image.createIndexed instead