Codota Logo
LightFrameAction.getDirectionText
Code IndexAdd Codota to your IDE (free)

How to use
getDirectionText
method
in
kendzi3d.light.ui.action.LightFrameAction

Best Java code snippets using kendzi3d.light.ui.action.LightFrameAction.getDirectionText (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: kendzi/kendzi3d

private boolean validate(Double direction, Double angle) {
  boolean directionError = direction == null || direction < 0 || direction > 360;
  boolean angleError = angle == null || angle < 0 || angle > 90;
  ValidateUtil.setComponentError(getDirectionText(), directionError);
  ValidateUtil.setComponentError(getAngleText(), angleError);
  return !(directionError || angleError);
}
origin: kendzi/kendzi3d

private void fillForm(LightConfiguration light) {
  getDirectionText().setText("" + light.getDirection());
  getAngleText().setText("" + light.getAngle());
  getLblAmbientColor().setBackground(light.getAmbientColor());
  getLblDiffuseColor().setBackground(light.getDiffuseColor());
}
origin: kendzi/kendzi3d

@Override
protected void onOk() {
  String directionText = getDirectionText().getText();
  String angleText = getAngleText().getText();
  Color ambientColor = getLblAmbientColor().getBackground();
  Color diffuseColor = getLblDiffuseColor().getBackground();
  Double direction = ParseUtil.parseDouble(directionText);
  Double angle = ParseUtil.parseDouble(angleText);
  if (validate(direction, angle)) {
    lightService.save(new LightConfiguration(direction, angle, ambientColor, diffuseColor));
    // dispose();
  }
}
kendzi3d.light.ui.actionLightFrameActiongetDirectionText

Popular methods of LightFrameAction

  • <init>
  • fillForm
  • getAngleText
  • getLblAmbientColor
  • getLblDiffuseColor
  • isDisplayable
  • load
  • setVisible
  • validate

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • findViewById (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • JFrame (javax.swing)
  • JTable (javax.swing)
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