Codota Logo
SoftButton.getName
Code IndexAdd Codota to your IDE (free)

How to use
getName
method
in
org.microemu.device.impl.SoftButton

Best Java code snippets using org.microemu.device.impl.SoftButton.getName (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: org.microemu/microemu-javase-swt

public void setScrollDown(boolean state) 
{
  Enumeration en = DeviceFactory.getDevice().getSoftButtons().elements();
  while (en.hasMoreElements()) {
    SoftButton button = (SoftButton) en.nextElement();
    if (button.getType() == SoftButton.TYPE_ICON
        && button.getName().equals("down")) {
      button.setVisible(state);
    }
  }
}
origin: org.microemu/microemu-javase-swt

public void setScrollUp(boolean state) 
{
  Enumeration en = DeviceFactory.getDevice().getSoftButtons().elements();
  while (en.hasMoreElements()) {
    SoftButton button = (SoftButton) en.nextElement();
    if (button.getType() == SoftButton.TYPE_ICON
        && button.getName().equals("up")) {
      button.setVisible(state);
    }
  }
}
origin: org.microemu/microemu-javase-swing

public void setScrollDown(boolean state) {
  Enumeration en = DeviceFactory.getDevice().getSoftButtons().elements();
  while (en.hasMoreElements()) {
    SoftButton button = (SoftButton) en.nextElement();
    if (button.getType() == SoftButton.TYPE_ICON && button.getName().equals("down")) {
      button.setVisible(state);
    }
  }
}
origin: org.microemu/microemu-javase-swing

public void setScrollUp(boolean state) {
  Enumeration en = DeviceFactory.getDevice().getSoftButtons().elements();
  while (en.hasMoreElements()) {
    SoftButton button = (SoftButton) en.nextElement();
    if (button.getType() == SoftButton.TYPE_ICON && button.getName().equals("up")) {
      button.setVisible(state);
    }
  }
}
origin: org.microemu/microemu-javase-swing

if (initialPressedSoftButton.getName().equals("up")) {
  da.keyPressed(getButtonByButtonName(ButtonName.UP).getKeyCode());
} else if (initialPressedSoftButton.getName().equals("down")) {
  da.keyPressed(getButtonByButtonName(ButtonName.DOWN).getKeyCode());
org.microemu.device.implSoftButtongetName

Popular methods of SoftButton

  • getCommand
  • getPaintable
  • getType
  • isPressed
  • isVisible
  • setPressed
  • setVisible
  • preferredCommandType
  • setCommand

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • orElseThrow (Optional)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • JCheckBox (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now