Class InputFileControl

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
org.lobobrowser.html.renderer.InputFileControl
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, InputContext

public class InputFileControl extends JComponent
See Also:
  • Field Details

    • value

      protected String value
    • size

      protected int size
    • ZERO_DIMENSION

      protected static final Dimension ZERO_DIMENSION
    • controlElement

      protected final HTMLElementImpl controlElement
    • ruicontrol

      protected org.lobobrowser.html.renderer.RUIControl ruicontrol
  • Constructor Details

  • Method Details

    • getValue

      public String getValue()
      Specified by:
      getValue in interface InputContext
    • setDisabled

      public void setDisabled(boolean disabled)
      Specified by:
      setDisabled in interface InputContext
    • setValue

      public void setValue(String value)
      Specified by:
      setValue in interface InputContext
    • getFileValue

      public File getFileValue()
      Specified by:
      getFileValue in interface InputContext
    • resetInput

      public void resetInput()
    • reset

      public void reset(int availWidth, int availHeight)
    • getVAlign

      public int getVAlign()
    • blur

      public void blur()
      Specified by:
      blur in interface InputContext
    • click

      public void click()
      Specified by:
      click in interface InputContext
    • focus

      public void focus()
      Specified by:
      focus in interface InputContext
    • getChecked

      public boolean getChecked()
      Specified by:
      getChecked in interface InputContext
    • getDisabled

      public boolean getDisabled()
      Specified by:
      getDisabled in interface InputContext
    • getMaxLength

      public int getMaxLength()
      Specified by:
      getMaxLength in interface InputContext
    • getReadOnly

      public boolean getReadOnly()
      Specified by:
      getReadOnly in interface InputContext
    • getTabIndex

      public int getTabIndex()
      Specified by:
      getTabIndex in interface InputContext
    • getValues

      public String[] getValues()
      Returns null. It should be overridden by controls that support multiple values.
      Specified by:
      getValues in interface InputContext
    • select

      public void select()
      Specified by:
      select in interface InputContext
    • setChecked

      public void setChecked(boolean checked)
      Specified by:
      setChecked in interface InputContext
    • setMaxLength

      public void setMaxLength(int maxLength)
      Specified by:
      setMaxLength in interface InputContext
    • setReadOnly

      public void setReadOnly(boolean readOnly)
      Specified by:
      setReadOnly in interface InputContext
    • setControlSize

      public void setControlSize(int size)
      Specified by:
      setControlSize in interface InputContext
    • setTabIndex

      public void setTabIndex(int tabIndex)
      Specified by:
      setTabIndex in interface InputContext
    • getControlSize

      public int getControlSize()
      Specified by:
      getControlSize in interface InputContext
    • getCols

      public int getCols()
      Specified by:
      getCols in interface InputContext
    • getRows

      public int getRows()
      Specified by:
      getRows in interface InputContext
    • setCols

      public void setCols(int cols)
      Specified by:
      setCols in interface InputContext
    • setRows

      public void setRows(int rows)
      Specified by:
      setRows in interface InputContext
    • paintSelection

      public boolean paintSelection(Graphics g, boolean inSelection, RenderableSpot startPoint, RenderableSpot endPoint)
    • getMultiple

      public boolean getMultiple()
    • getSelectedIndex

      public int getSelectedIndex()
      Specified by:
      getSelectedIndex in interface InputContext
    • getVisibleSize

      public int getVisibleSize()
      Specified by:
      getVisibleSize in interface InputContext
    • setMultiple

      public void setMultiple(boolean value)
    • setSelectedIndex

      public void setSelectedIndex(int value)
      Specified by:
      setSelectedIndex in interface InputContext
    • setVisibleSize

      public void setVisibleSize(int value)
      Specified by:
      setVisibleSize in interface InputContext
    • getComponent

      public Component getComponent()
    • setRUIControl

      public void setRUIControl(org.lobobrowser.html.renderer.RUIControl ruicontrol)
    • invalidateAndRepaint

      protected void invalidateAndRepaint()
      Method invoked when image changes size. It's expected to be called outside the GUI thread.
    • getBackgroundColor

      public Color getBackgroundColor()
    • getPreferredSize

      Dimension getPreferredSize()
    • setBounds

      void setBounds(int x, int y, int width, int height)
    • invalidate

      void invalidate()
    • paint

      void paint(Graphics g)