Class ComponentWrarper


  • public class ComponentWrarper
    extends Container
    Helper class to force a given width and height to a control. This class is used automatically by the layout containers and should not be used manually.
    • Constructor Detail

      • ComponentWrarper

        public ComponentWrarper​(Control component,
                                int w,
                                int h)
        Creates a component wrarper for the given component with the specified width and height
        Parameters:
        component -
        w -
        h -
    • Method Detail

      • initUI

        public void initUI()
        Description copied from class: Container
        Called to initialize the User Interface of this container. This differs from the onAddAgain method by that this method is called only once, at the first time the control is added to the parent. When the container is being setup, the initUI method is called; then, the onAddAgain is called every time the container is added again.
        Overrides:
        initUI in class Container
      • getPreferredWidth

        public int getPreferredWidth()
        Description copied from class: Control
        Returns the preferred width of this control.
        Overrides:
        getPreferredWidth in class Control
      • getPreferredHeight

        public int getPreferredHeight()
        Description copied from class: Control
        Returns the preferred height of this control.
        Overrides:
        getPreferredHeight in class Control