Java Code Examples for javax.microedition.media.Controllable#getControl()

The following examples show how to use javax.microedition.media.Controllable#getControl() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AdvancedMultimediaManager.java    From CodenameOne with GNU General Public License v2.0 5 votes vote down vote up
private static Control getControl(Controllable player, String fullName) {
  Control control = player.getControl(fullName);
  if (control == null) {
    String shortName = fullName.substring(fullName.lastIndexOf('.') + 1);
    control = player.getControl(shortName);
  }
  return control;
}
 
Example 2
Source File: AdvancedMultimediaManager.java    From CodenameOne with GNU General Public License v2.0 5 votes vote down vote up
private static Control getControl(Controllable player, String fullName) {
    Control control = player.getControl(fullName);
    if (control == null) {
        String shortName = fullName.substring(fullName.lastIndexOf('.') + 1);
        control = player.getControl(shortName);
    }
    return control;
}