jfxrt

formUtil;
import javafx.beans.Observable;
import javafx.beans.binding.BooleanBinding;
import javafx.beans.property.BooleanProperty;
import javafx.scene.control.TextInputControl;

class TextInputControlSkin$10
  extends BooleanBinding
{
  TextInputControlSkin$10(TextInputControlSkin paramTextInputControlSkin, TextInputControl paramTextInputControl)
  {
    bind(new Observable[] { val$textInput.focusedProperty(), val$textInput.anchorProperty(), val$textInput.caretPositionProperty(), val$textInput.disabledProperty(), val$textInput.editableProperty(), this$0.displayCaret, TextInputControlSkin.access$600(this$0) });
  }
  
  protected boolean computeValue()
  {
    return (!TextInputControlSkin.access$600(this$0).get()) && (this$0.displayCaret.get()) && (val$textInput.isFocused()) && ((PlatformUtil.isWindows()) || (val$textInput.getCaretPosition() == val$textInput.getAnchor())) && (!val$textInput.isDisabled()) && (val$textInput.isEditable());
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.scene.control.skin.TextInputControlSkin.10
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.scene.control.skin;

import javafx.beans.Observable;
import javafx.beans.binding.BooleanBinding;
import javafx.beans.property.BooleanProperty;
import javafx.scene.control.TextInputControl;

class TextInputControlSkin$11
  extends BooleanBinding
{
  TextInputControlSkin$11(TextInputControlSkin paramTextInputControlSkin, TextInputControl paramTextInputControl)
  {
    bind(new Observable[] { val$textInput.focusedProperty(), val$textInput.anchorProperty(), val$textInput.caretPositionProperty(), val$textInput.disabledProperty(), val$textInput.editableProperty(), val$textInput.lengthProperty(), this$0.displayCaret });
  }
  
  protected boolean computeValue()
  {
    return (this$0.displayCaret.get()) && (val$textInput.isFocused()) && (val$textInput.getCaretPosition() == val$textInput.getAnchor()) && (!val$textInput.isDisabled()) && (val$textInput.isEditable()) && (val$textInput.getLength() > 0);
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.scene.control.skin.TextInputControlSkin.11
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.scene.control.skin;

import javafx.beans.Observable;
import javafx.beans.binding.BooleanBinding;
import javafx.beans.property.BooleanProperty;
import javafx.scene.control.TextInputControl;

class TextInputControlSkin$12
  extends BooleanBinding
{
  TextInputControlSkin$12(TextInputControlSkin paramTextInputControlSkin, TextInputControl paramTextInputControl)
  {
    bind(new Observable[] { val$textInput.focusedProperty(), val$textInput.anchorProperty(), val$textInput.caretPositionProperty(), val$textInput.disabledProperty(), this$0.displayCaret });
  }
  
  protected boolean computeValue()
  {
    return (this$0.displayCaret.get()) && (val$textInput.isFocused()) && (val$textInput.getCaretPosition() != val$textInput.getAnchor()) && (!val$textInput.isDisabled());
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.scene.control.skin.TextInputControlSkin.12
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.scene.control.skin;

import javafx.beans.Observable;
import javafx.beans.binding.BooleanBinding;
import javafx.beans.property.BooleanProperty;
import javafx.scene.control.TextInputControl;

class TextInputControlSkin$13
  extends BooleanBinding
{
  TextInputControlSkin$13(TextInputControlSkin paramTextInputControlSkin, TextInputControl paramTextInputControl)
  {
    bind(new Observable[] { val$textInput.focusedProperty(), val$textInput.anchorProperty(), val$textInput.caretPositionProperty(), val$textInput.disabledProperty(), this$0.displayCaret });
  }
  
  protected boolean computeValue()
  {
    return (this$0.displayCaret.get()) && (val$textInput.isFocused()) && (val$textInput.getCaretPosition() != val$textInput.getAnchor()) && (!val$textInput.isDisabled());
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.scene.control.skin.TextInputControlSkin.13
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.scene.control.skin;

import javafx.beans.InvalidationListener;
import javafx.beans.Observable;
import javafx.scene.Scene;
import javafx.scene.control.TextInputControl;
import javafx.stage.Window;

class TextInputControlSkin$14
  implements InvalidationListener
{
  TextInputControlSkin$14(TextInputControlSkin paramTextInputControlSkin, TextInputControl paramTextInputControl) {}
  
  public void invalidated(Observable paramObservable)
  {
    if (TextInputControlSkin.access$700()) {
      if ((val$textInput.isEditable()) && (val$textInput.isFocused())) {
        FXVK.attach(val$textInput);
      } else if ((this$0.getScene() == null) || (this$0.getScene().getWindow() == null) || (!this$0.getScene().getWindow().isFocused()) || (!(this$0.getScene().getFocusOwner() instanceof TextInputControl)) || (!((TextInputControl)this$0.getScene().getFocusOwner()).isEditable())) {
        FXVK.detach();
      }
    }
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.scene.control.skin.TextInputControlSkin.14
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.scene.control.skin;

import javafx.event.EventHandler;
import javafx.scene.input.InputMethodEvent;

class TextInputControlSkin$15
  implements EventHandler<InputMethodEvent>
{
  TextInputControlSkin$15(TextInputControlSkin paramTextInputControlSkin) {}
  
  public void handle(InputMethodEvent paramInputMethodEvent)
  {
    this$0.handleInputMethodEvent(paramInputMethodEvent);
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.scene.control.skin.TextInputControlSkin.15
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.scene.control.skin;

import javafx.geometry.Point2D;
import javafx.geometry.Rectangle2D;
import javafx.scene.Scene;
import javafx.scene.control.IndexRange;
import javafx.scene.control.TextInputControl;
import javafx.scene.input.InputMethodRequests;
import javafx.stage.Window;

class TextInputControlSkin$16
  implements InputMethodRequests
{
  TextInputControlSkin$16(TextInputControlSkin paramTextInputControlSkin) {}
  
  public Point2D getTextLocation(int paramInt)
  {
    Scene localScene = this$0.getScene();
    Window localWindow = localScene.getWindow();
    Rectangle2D localRectangle2D = this$0.getCharacterBounds(TextInputControlSkin.access$800(this$0) + paramInt);
    Point2D localPoint2D1 = this$0.localToScene(localRectangle2D.getMinX(), localRectangle2D.getMaxY());
    Point2D localPoint2D2 = new Point2D(localWindow.getX() + localScene.getX() + localPoint2D1.getX() - 6.0D, localWindow.getY() + localScene.getY() + localPoint2D1.getY() - 42.0D);
    return localPoint2D2;
  }
  
  public int getLocationOffset(int paramInt1, int paramInt2)
  {
    return this$0.getInsertionPoint(paramInt1, paramInt2);
  }
  
  public void cancelLatestCommittedText() {}
  
  public String getSelectedText()
  {
    TextInputControl localTextInputControl = (TextInputControl)this$0.getSkinnable();
    IndexRange localIndexRange = localTextInputControl.getSelection();
    return localTextInputControl.getText(localIndexRange.getStart(), localIndexRange.getEnd());
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.scene.control.skin.TextInputControlSkin.16
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.scene.control.skin;

import com.sun.javafx.tk.FontLoader;
import com.sun.javafx.tk.FontMetrics;
import com.sun.javafx.tk.Toolkit;
import javafx.beans.Observable;
import javafx.beans.binding.ObjectBinding;
import javafx.beans.property.ObjectProperty;
import javafx.scene.text.Font;

class TextInputControlSkin$2
  extends ObjectBinding<FontMetrics>
{
  TextInputControlSkin$2(TextInputControlSkin paramTextInputControlSkin)
  {
    bind(new Observable[] { this$0.font });
  }
  
  protected FontMetrics computeValue()
  {
    this$0.invalidateMetrics();
    return Toolkit.getToolkit().getFontLoader().getFontMetrics((Font)this$0.font.get());
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.scene.control.skin.TextInputControlSkin.2
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.scene.control.skin;

import com.sun.javafx.css.StyleableObjectProperty;
import com.sun.javafx.css.StyleableProperty;
import javafx.scene.paint.Paint;

class TextInputControlSkin$3
  extends StyleableObjectProperty<Paint>
{
  TextInputControlSkin$3(TextInputControlSkin paramTextInputControlSkin, Paint paramPaint)
  {
    super(paramPaint);
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "textFill";
  }
  
  public StyleableProperty getStyleableProperty()
  {
    return TextInputControlSkin.StyleableProperties.access$100();
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.scene.control.skin.TextInputControlSkin.3
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.scene.control.skin;

import com.sun.javafx.css.StyleableObjectProperty;
import com.sun.javafx.css.StyleableProperty;
import javafx.scene.paint.Paint;

class TextInputControlSkin$4
  extends StyleableObjectProperty<Paint>
{
  TextInputControlSkin$4(TextInputControlSkin paramTextInputControlSkin, Paint paramPaint)
  {
    super(paramPaint);
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "promptTextFill";
  }
  
  public StyleableProperty getStyleableProperty()
  {
    return TextInputControlSkin.StyleableProperties.access$200();
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.scene.control.skin.TextInputControlSkin.4
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.scene.control.skin;

import com.sun.javafx.css.StyleableObjectProperty;
import com.sun.javafx.css.StyleableProperty;
import javafx.scene.paint.Paint;

class TextInputControlSkin$5
  extends StyleableObjectProperty<Paint>
{
  TextInputControlSkin$5(TextInputControlSkin paramTextInputControlSkin, Paint paramPaint)
  {
    super(paramPaint);
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "highlightFill";
  }
  
  public StyleableProperty getStyleableProperty()
  {
    return TextInputControlSkin.StyleableProperties.access$300();
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.scene.control.skin.TextInputControlSkin.5
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.scene.control.skin;

import com.sun.javafx.css.StyleableObjectProperty;
import com.sun.javafx.css.StyleableProperty;
import javafx.scene.paint.Paint;

class TextInputControlSkin$6
  extends StyleableObjectProperty<Paint>
{
  TextInputControlSkin$6(TextInputControlSkin paramTextInputControlSkin, Paint paramPaint)
  {
    super(paramPaint);
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "highlightTextFill";
  }
  
  public StyleableProperty getStyleableProperty()
  {
    return TextInputControlSkin.StyleableProperties.access$400();
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.scene.control.skin.TextInputControlSkin.6
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.scene.control.skin;

import com.sun.javafx.css.StyleableBooleanProperty;
import com.sun.javafx.css.StyleableProperty;

class TextInputControlSkin$7
  extends StyleableBooleanProperty
{
  TextInputControlSkin$7(TextInputControlSkin paramTextInputControlSkin, boolean paramBoolean)
  {
    super(paramBoolean);
  }
  
  public Object getBean()
  {
    return this$0;
  }
  
  public String getName()
  {
    return "displayCaret";
  }
  
  public StyleableProperty getStyleableProperty()
  {
    return TextInputControlSkin.StyleableProperties.access$500();
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.scene.control.skin.TextInputControlSkin.7
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.scene.control.skin;

import javafx.beans.property.BooleanProperty;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;

class TextInputControlSkin$8
  implements EventHandler<ActionEvent>
{
  TextInputControlSkin$8(TextInputControlSkin paramTextInputControlSkin) {}
  
  public void handle(ActionEvent paramActionEvent)
  {
    TextInputControlSkin.access$600(this$0).set(false);
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.scene.control.skin.TextInputControlSkin.8
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.scene.control.skin;

import javafx.beans.property.BooleanProperty;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;

class TextInputControlSkin$9
  implements EventHandler<ActionEvent>
{
  TextInputControlSkin$9(TextInputControlSkin paramTextInputControlSkin) {}
  
  public void handle(ActionEvent paramActionEvent)
  {
    TextInputControlSkin.access$600(this$0).set(true);
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.scene.control.skin.TextInputControlSkin.9
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.scene.control.skin;

import com.sun.javafx.scene.control.behavior.TextInputControlBehavior;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;

class TextInputControlSkin$ContextMenuItem$1
  implements EventHandler<ActionEvent>
{
  TextInputControlSkin$ContextMenuItem$1(TextInputControlSkin.ContextMenuItem paramContextMenuItem, TextInputControlSkin paramTextInputControlSkin, String paramString) {}
  
  public void handle(ActionEvent paramActionEvent)
  {
    ((TextInputControlBehavior)this$1.this$0.getBehavior()).callAction(val$action);
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.scene.control.skin.TextInputControlSkin.ContextMenuItem.1
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.scene.control.skin;

import com.sun.javafx.scene.control.behavior.TextInputControlBehavior;
import com.sun.javafx.scene.control.skin.resources.ControlResources;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.control.MenuItem;

class TextInputControlSkin$ContextMenuItem
  extends MenuItem
{
  TextInputControlSkin$ContextMenuItem(final TextInputControlSkin paramTextInputControlSkin, final String paramString)
  {
    super(ControlResources.getString("TextInputControl.menu." + paramString));
    setOnAction(new EventHandler()
    {
      public void handle(ActionEvent paramAnonymousActionEvent)
      {
        ((TextInputControlBehavior)this$0.getBehavior()).callAction(paramString);
      }
    });
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.scene.control.skin.TextInputControlSkin.ContextMenuItem
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.scene.control.skin;

import com.sun.javafx.css.StyleableProperty.FONT;
import javafx.beans.property.ObjectProperty;
import javafx.beans.value.WritableValue;
import javafx.scene.text.Font;

final class TextInputControlSkin$StyleableProperties$1
  extends StyleableProperty.FONT<TextInputControlSkin>
{
  TextInputControlSkin$StyleableProperties$1(String paramString, Font paramFont)
  {
    super(paramString, paramFont);
  }
  
  public boolean isSettable(TextInputControlSkin paramTextInputControlSkin)
  {
    return (font == null) || (!font.isBound());
  }
  
  public WritableValue<Font> getWritableValue(TextInputControlSkin paramTextInputControlSkin)
  {
    return font;
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.scene.control.skin.TextInputControlSkin.StyleableProperties.1
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.scene.control.skin;

import com.sun.javafx.css.StyleConverter;
import com.sun.javafx.css.StyleableProperty;
import javafx.beans.property.ObjectProperty;
import javafx.beans.value.WritableValue;
import javafx.scene.paint.Paint;

final class TextInputControlSkin$StyleableProperties$2
  extends StyleableProperty<TextInputControlSkin, Paint>
{
  TextInputControlSkin$StyleableProperties$2(String paramString, StyleConverter paramStyleConverter, Paint paramPaint)
  {
    super(paramString, paramStyleConverter, paramPaint);
  }
  
  public boolean isSettable(TextInputControlSkin paramTextInputControlSkin)
  {
    return (textFill == null) || (!textFill.isBound());
  }
  
  public WritableValue<Paint> getWritableValue(TextInputControlSkin paramTextInputControlSkin)
  {
    return textFill;
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.scene.control.skin.TextInputControlSkin.StyleableProperties.2
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.scene.control.skin;

import com.sun.javafx.css.StyleConverter;
import com.sun.javafx.css.StyleableProperty;
import javafx.beans.property.ObjectProperty;
import javafx.beans.value.WritableValue;
import javafx.scene.paint.Paint;

final class TextInputControlSkin$StyleableProperties$3
  extends StyleableProperty<TextInputControlSkin, Paint>
{
  TextInputControlSkin$StyleableProperties$3(String paramString, StyleConverter paramStyleConverter, Paint paramPaint)
  {
    super(paramString, paramStyleConverter, paramPaint);
  }
  
  public boolean isSettable(TextInputControlSkin paramTextInputControlSkin)
  {
    return (promptTextFill == null) || (!promptTextFill.isBound());
  }
  
  public WritableValue<Paint> getWritableValue(TextInputControlSkin paramTextInputControlSkin)
  {
    return promptTextFill;
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.scene.control.skin.TextInputControlSkin.StyleableProperties.3
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.scene.control.skin;

import com.sun.javafx.css.StyleConverter;
import com.sun.javafx.css.StyleableProperty;
import javafx.beans.property.ObjectProperty;
import javafx.beans.value.WritableValue;
import javafx.scene.paint.Paint;

final class TextInputControlSkin$StyleableProperties$4
  extends StyleableProperty<TextInputControlSkin, Paint>
{
  TextInputControlSkin$StyleableProperties$4(String paramString, StyleConverter paramStyleConverter, Paint paramPaint)
  {
    super(paramString, paramStyleConverter, paramPaint);
  }
  
  public boolean isSettable(TextInputControlSkin paramTextInputControlSkin)
  {
    return (highlightFill == null) || (!highlightFill.isBound());
  }
  
  public WritableValue<Paint> getWritableValue(TextInputControlSkin paramTextInputControlSkin)
  {
    return highlightFill;
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.scene.control.skin.TextInputControlSkin.StyleableProperties.4
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.scene.control.skin;

import com.sun.javafx.css.StyleConverter;
import com.sun.javafx.css.StyleableProperty;
import javafx.beans.property.ObjectProperty;
import javafx.beans.value.WritableValue;
import javafx.scene.paint.Paint;

final class TextInputControlSkin$StyleableProperties$5
  extends StyleableProperty<TextInputControlSkin, Paint>
{
  TextInputControlSkin$StyleableProperties$5(String paramString, StyleConverter paramStyleConverter, Paint paramPaint)
  {
    super(paramString, paramStyleConverter, paramPaint);
  }
  
  public boolean isSettable(TextInputControlSkin paramTextInputControlSkin)
  {
    return (highlightTextFill == null) || (!highlightTextFill.isBound());
  }
  
  public WritableValue<Paint> getWritableValue(TextInputControlSkin paramTextInputControlSkin)
  {
    return highlightTextFill;
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.scene.control.skin.TextInputControlSkin.StyleableProperties.5
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.scene.control.skin;

import com.sun.javafx.css.StyleConverter;
import com.sun.javafx.css.StyleableProperty;
import javafx.beans.property.BooleanProperty;
import javafx.beans.value.WritableValue;

final class TextInputControlSkin$StyleableProperties$6
  extends StyleableProperty<TextInputControlSkin, Boolean>
{
  TextInputControlSkin$StyleableProperties$6(String paramString, StyleConverter paramStyleConverter, Boolean paramBoolean)
  {
    super(paramString, paramStyleConverter, paramBoolean);
  }
  
  public boolean isSettable(TextInputControlSkin paramTextInputControlSkin)
  {
    return (displayCaret == null) || (!displayCaret.isBound());
  }
  
  public WritableValue<Boolean> getWritableValue(TextInputControlSkin paramTextInputControlSkin)
  {
    return displayCaret;
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.scene.control.skin.TextInputControlSkin.StyleableProperties.6
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.scene.control.skin;

import com.sun.javafx.css.StyleConverter;
import com.sun.javafx.css.StyleableProperty;
import com.sun.javafx.css.StyleableProperty.FONT;
import com.sun.javafx.css.converters.BooleanConverter;
import com.sun.javafx.css.converters.PaintConverter;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import javafx.beans.property.BooleanProperty;
import javafx.beans.property.ObjectProperty;
import javafx.beans.value.WritableValue;
import javafx.scene.paint.Color;
import javafx.scene.paint.Paint;
import javafx.scene.text.Font;

class TextInputControlSkin$StyleableProperties
{
  private static final StyleableProperty<TextInputControlSkin, Font> FONT = new StyleableProperty.FONT("-fx-font", Font.getDefault())
  {
    public boolean isSettable(TextInputControlSkin paramAnonymousTextInputControlSkin)
    {
      return (font == null) || (!font.isBound());
    }
    
    public WritableValue<Font> getWritableValue(TextInputControlSkin paramAnonymousTextInputControlSkin)
    {
      return font;
    }
  };
  private static final StyleableProperty<TextInputControlSkin, Paint> TEXT_FILL = new StyleableProperty("-fx-text-fill", PaintConverter.getInstance(), Color.BLACK)
  {
    public boolean isSettable(TextInputControlSkin paramAnonymousTextInputControlSkin)
    {
      return (textFill == null) || (!textFill.isBound());
    }
    
    public WritableValue<Paint> getWritableValue(TextInputControlSkin paramAnonymousTextInputControlSkin)
    {
      return textFill;
    }
  };
  private static final StyleableProperty<TextInputControlSkin, Paint> PROMPT_TEXT_FILL = new StyleableProperty("-fx-prompt-text-fill", PaintConverter.getInstance(), Color.GRAY)
  {
    public boolean isSettable(TextInputControlSkin paramAnonymousTextInputControlSkin)
    {
      return (promptTextFill == null) || (!promptTextFill.isBound());
    }
    
    public WritableValue<Paint> getWritableValue(TextInputControlSkin paramAnonymousTextInputControlSkin)
    {
      return promptTextFill;
    }
  };
  private static final StyleableProperty<TextInputControlSkin, Paint> HIGHLIGHT_FILL = new StyleableProperty("-fx-highlight-fill", PaintConverter.getInstance(), Color.DODGERBLUE)
  {
    public boolean isSettable(TextInputControlSkin paramAnonymousTextInputControlSkin)
    {
      return (highlightFill == null) || (!highlightFill.isBound());
    }
    
    public WritableValue<Paint> getWritableValue(TextInputControlSkin paramAnonymousTextInputControlSkin)
    {
      return highlightFill;
    }
  };
  private static final StyleableProperty<TextInputControlSkin, Paint> HIGHLIGHT_TEXT_FILL = new StyleableProperty("-fx-highlight-text-fill", PaintConverter.getInstance(), Color.WHITE)
  {
    public boolean isSettable(TextInputControlSkin paramAnonymousTextInputControlSkin)
    {
      return (highlightTextFill == null) || (!highlightTextFill.isBound());
    }
    
    public WritableValue<Paint> getWritableValue(TextInputControlSkin paramAnonymousTextInputControlSkin)
    {
      return highlightTextFill;
    }
  };
  private static final StyleableProperty<TextInputControlSkin, Boolean> DISPLAY_CARET = new StyleableProperty("-fx-display-caret", BooleanConverter.getInstance(), Boolean.TRUE)
  {
    public boolean isSettable(TextInputControlSkin paramAnonymousTextInputControlSkin)
    {
      return (displayCaret == null) || (!displayCaret.isBound());
    }
    
    public WritableValue<Boolean> getWritableValue(TextInputControlSkin paramAnonymousTextInputControlSkin)
    {
      return displayCaret;
    }
  };
  private static final List<StyleableProperty> STYLEABLES;
  
  static
  {
    ArrayList localArrayList = new ArrayList(SkinBase.impl_CSS_STYLEABLES());
    Collections.addAll(localArrayList, new StyleableProperty[] { FONT, TEXT_FILL, PROMPT_TEXT_FILL, HIGHLIGHT_FILL, HIGHLIGHT_TEXT_FILL, DISPLAY_CARET });
    STYLEABLES = Collections.unmodifiableList(localArrayList);
  }
}

/* Location:
 * Qualified Name:     com.sun.javafx.scene.control.skin.TextInputControlSkin.StyleableProperties
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.javafx.scene.control.skin;

import com.sun.javafx.PlatformUtil;
import com.sun.javafx.css.StyleConverter;
import com.sun.javafx.css.StyleableBooleanProperty;
import com.sun.javafx.css.StyleableObjectProperty;
import com.sun.javafx.css.StyleableProperty;
import com.sun.javafx.css.StyleableProperty.FONT;
import com.sun.javafx.css.converters.BooleanConverter;
import com.sun.javafx.css.converters.PaintConverter;
import com.sun.javafx.scene.control.behavior.TextInputControlBehavior;
import com.sun.javafx.scene.control.skin.resources.ControlResources;
import com.sun.javafx.tk.FontLoader;
import com.sun.javafx.tk.FontMetrics;
import com.sun.javafx.tk.Toolkit;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import javafx.animation.KeyFrame;
import javafx.animation.KeyValue;
import javafx.animation.Timeline;
import javafx.beans.InvalidationListener;
import javafx.beans.Observable;
import javafx.beans.binding.BooleanBinding;
import javafx.beans.binding.ObjectBinding;
import javafx.beans.property.BooleanProperty;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.ReadOnlyBooleanProperty;
import javafx.beans.property.SimpleBooleanProperty;
import javafx.beans.property.StringProperty;
import javafx.beans.value.ObservableBooleanValue;
import javafx.beans.value.ObservableObjectValue;
import javafx.beans.value.WritableValue;
import javafx.collections.ObservableList;
import javafx.collections.ObservableMap;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Point2D;
import javafx.geometry.Rectangle2D;
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.control.ContextMenu;
import javafx.scene.control.IndexRange;
import javafx.scene.control.MenuItem;
import javafx.scene.control.SeparatorMenuItem;
import javafx.scene.control.TextInputControl;
import javafx.scene.input.Clipboard;
import javafx.scene.input.InputMethodEvent;
import javafx.scene.input.InputMethodHighlight;
import javafx.scene.input.InputMethodRequests;
import javafx.scene.input.InputMethodTextRun;
import javafx.scene.layout.StackPane;
import javafx.scene.paint.Color;
import javafx.scene.paint.Paint;
import javafx.scene.shape.ClosePath;
import javafx.scene.shape.HLineTo;
import javafx.scene.shape.Line;
import javafx.scene.shape.LineTo;
import javafx.scene.shape.MoveTo;
import javafx.scene.shape.Path;
import javafx.scene.shape.PathElement;
import javafx.scene.shape.Shape;
import javafx.scene.shape.VLineTo;
import javafx.scene.text.Font;
import javafx.stage.Window;
import javafx.util.Duration;

public abstract class TextInputControlSkin<T extends TextInputControl, B extends TextInputControlBehavior<T>>
  extends SkinBase<T, B>
{
  private static final boolean macOS = ;
  protected final ObjectProperty<Font> font = new StyleableObjectProperty(Font.getDefault())
  {
    public Object getBean()
    {
      return TextInputControlSkin.this;
    }
    
    public String getName()
    {
      return "font";
    }
    
    public StyleableProperty getStyleableProperty()
    {
      return TextInputControlSkin.StyleableProperties.access$000();
    }
  };
  protected final ObservableObjectValue<FontMetrics> fontMetrics = new ObjectBinding()
  {
    protected FontMetrics computeValue()
    {
      invalidateMetrics();
      return Toolkit.getToolkit().getFontLoader().getFontMetrics((Font)font.get());
    }
  };
  protected final ObjectProperty<Paint> textFill = new StyleableObjectProperty(Color.BLACK)
  {
    public Object getBean()
    {
      return TextInputControlSkin.this;
    }
    
    public String getName()
    {
      return "textFill";
    }
    
    public StyleableProperty getStyleableProperty()
    {
      return TextInputControlSkin.StyleableProperties.access$100();
    }
  };
  protected final ObjectProperty<Paint> promptTextFill = new StyleableObjectProperty(Color.GRAY)
  {
    public Object getBean()
    {
      return TextInputControlSkin.this;
    }
    
    public String getName()
    {
      return "promptTextFill";
    }
    
    public StyleableProperty getStyleableProperty()
    {
      return TextInputControlSkin.StyleableProperties.access$200();
    }
  };
  protected final ObjectProperty<Paint> highlightFill = new StyleableObjectProperty(Color.DODGERBLUE)
  {
    public Object getBean()
    {
      return TextInputControlSkin.this;
    }
    
    public String getName()
    {
      return "highlightFill";
    }
    
    public StyleableProperty getStyleableProperty()
    {
      return TextInputControlSkin.StyleableProperties.access$300();
    }
  };
  protected final ObjectProperty<Paint> highlightTextFill = new StyleableObjectProperty(Color.WHITE)
  {
    public Object getBean()
    {
      return TextInputControlSkin.this;
    }
    
    public String getName()
    {
      return "highlightTextFill";
    }
    
    public StyleableProperty getStyleableProperty()
    {
      return TextInputControlSkin.StyleableProperties.access$400();
    }
  };
  protected final BooleanProperty displayCaret = new StyleableBooleanProperty(true)
  {
    public Object getBean()
    {
      return TextInputControlSkin.this;
    }
    
    public String getName()
    {
      return "displayCaret";
    }
    
    public StyleableProperty getStyleableProperty()
    {
      return TextInputControlSkin.StyleableProperties.access$500();
    }
  };
  private BooleanProperty blink = new SimpleBooleanProperty(this, "blink", true);
  protected ObservableBooleanValue caretVisible;
  private Timeline caretTimeline = new Timeline();
  protected final Path caretPath = new Path();
  protected StackPane caretHandle = null;
  protected StackPane selectionHandle1 = null;
  protected StackPane selectionHandle2 = null;
  private static boolean useFXVK = PlatformUtil.isEmbedded();
  static int vkType = -1;
  private int imstart;
  private int imlength;
  private List<Shape> imattrs = new ArrayList();
  final MenuItem undoMI = new ContextMenuItem("Undo");
  final MenuItem redoMI = new ContextMenuItem("Redo");
  final MenuItem cutMI = new ContextMenuItem("Cut");
  final MenuItem copyMI = new ContextMenuItem("Copy");
  final MenuItem pasteMI = new ContextMenuItem("Paste");
  final MenuItem deleteMI = new ContextMenuItem("DeleteSelection");
  final MenuItem selectWordMI = new ContextMenuItem("SelectWord");
  final MenuItem selectAllMI = new ContextMenuItem("SelectAll");
  final MenuItem separatorMI = new SeparatorMenuItem();
  
  public Point2D getMenuPosition()
  {
    if (PlatformUtil.isEmbedded())
    {
      if (caretHandle.isVisible()) {
        return new Point2D(caretHandle.getLayoutX() + caretHandle.getWidth() / 2.0D, caretHandle.getLayoutY());
      }
      if ((selectionHandle1.isVisible()) && (selectionHandle2.isVisible())) {
        return new Point2D((selectionHandle1.getLayoutX() + selectionHandle1.getWidth() / 2.0D + selectionHandle2.getLayoutX() + selectionHandle2.getWidth() / 2.0D) / 2.0D, selectionHandle2.getLayoutY() + selectionHandle2.getHeight() / 2.0D);
      }
      return null;
    }
    throw new UnsupportedOperationException();
  }
  
  public void toggleUseVK()
  {
    vkType += 1;
    if (vkType < 4)
    {
      useFXVK = true;
      ((TextInputControl)getSkinnable()).getProperties().put("vkType", FXVK.VK_TYPE_NAMES[vkType]);
      FXVK.attach(getSkinnable());
    }
    else
    {
      FXVK.detach();
      vkType = -1;
      useFXVK = false;
    }
  }
  
  public TextInputControlSkin(final T paramT, B paramB)
  {
    super(paramT, paramB);
    caretTimeline.setCycleCount(-1);
    caretTimeline.getKeyFrames().addAll(new KeyFrame[] { new KeyFrame(Duration.ZERO, new EventHandler()
    {
      public void handle(ActionEvent paramAnonymousActionEvent)
      {
        blink.set(false);
      }
    }, new KeyValue[0]), new KeyFrame(Duration.seconds(0.5D), new EventHandler()
    {
      public void handle(ActionEvent paramAnonymousActionEvent)
      {
        blink.set(true);
      }
    }, new KeyValue[0]), new KeyFrame(Duration.seconds(1.0D), new KeyValue[0]) });
    caretVisible = new BooleanBinding()
    {
      protected boolean computeValue()
      {
        return (!blink.get()) && (displayCaret.get()) && (paramT.isFocused()) && ((PlatformUtil.isWindows()) || (paramT.getCaretPosition() == paramT.getAnchor())) && (!paramT.isDisabled()) && (paramT.isEditable());
      }
    };
    if (PlatformUtil.isEmbedded())
    {
      caretHandle = new StackPane();
      selectionHandle1 = new StackPane();
      selectionHandle2 = new StackPane();
      caretHandle.setManaged(false);
      selectionHandle1.setManaged(false);
      selectionHandle2.setManaged(false);
      caretHandle.visibleProperty().bind(new BooleanBinding()
      {
        protected boolean computeValue()
        {
          return (displayCaret.get()) && (paramT.isFocused()) && (paramT.getCaretPosition() == paramT.getAnchor()) && (!paramT.isDisabled()) && (paramT.isEditable()) && (paramT.getLength() > 0);
        }
      });
      selectionHandle1.visibleProperty().bind(new BooleanBinding()
      {
        protected boolean computeValue()
        {
          return (displayCaret.get()) && (paramT.isFocused()) && (paramT.getCaretPosition() != paramT.getAnchor()) && (!paramT.isDisabled());
        }
      });
      selectionHandle2.visibleProperty().bind(new BooleanBinding()
      {
        protected boolean computeValue()
        {
          return (displayCaret.get()) && (paramT.isFocused()) && (paramT.getCaretPosition() != paramT.getAnchor()) && (!paramT.isDisabled());
        }
      });
      caretHandle.getStyleClass().setAll(new String[] { "caret-handle" });
      selectionHandle1.getStyleClass().setAll(new String[] { "selection-handle" });
      selectionHandle2.getStyleClass().setAll(new String[] { "selection-handle" });
      selectionHandle1.setId("selection-handle-1");
      selectionHandle2.setId("selection-handle-2");
      paramT.focusedProperty().addListener(new InvalidationListener()
      {
        public void invalidated(Observable paramAnonymousObservable)
        {
          if (TextInputControlSkin.useFXVK) {
            if ((paramT.isEditable()) && (paramT.isFocused())) {
              FXVK.attach(paramT);
            } else if ((getScene() == null) || (getScene().getWindow() == null) || (!getScene().getWindow().isFocused()) || (!(getScene().getFocusOwner() instanceof TextInputControl)) || (!((TextInputControl)getScene().getFocusOwner()).isEditable())) {
              FXVK.detach();
            }
          }
        }
      });
    }
    if (paramT.getOnInputMethodTextChanged() == null) {
      paramT.setOnInputMethodTextChanged(new EventHandler()
      {
        public void handle(InputMethodEvent paramAnonymousInputMethodEvent)
        {
          handleInputMethodEvent(paramAnonymousInputMethodEvent);
        }
      });
    }
    paramT.setInputMethodRequests(new InputMethodRequests()
    {
      public Point2D getTextLocation(int paramAnonymousInt)
      {
        Scene localScene = getScene();
        Window localWindow = localScene.getWindow();
        Rectangle2D localRectangle2D = getCharacterBounds(imstart + paramAnonymousInt);
        Point2D localPoint2D1 = localToScene(localRectangle2D.getMinX(), localRectangle2D.getMaxY());
        Point2D localPoint2D2 = new Point2D(localWindow.getX() + localScene.getX() + localPoint2D1.getX() - 6.0D, localWindow.getY() + localScene.getY() + localPoint2D1.getY() - 42.0D);
        return localPoint2D2;
      }
      
      public int getLocationOffset(int paramAnonymousInt1, int paramAnonymousInt2)
      {
        return getInsertionPoint(paramAnonymousInt1, paramAnonymousInt2);
      }
      
      public void cancelLatestCommittedText() {}
      
      public String getSelectedText()
      {
        TextInputControl localTextInputControl = (TextInputControl)getSkinnable();
        IndexRange localIndexRange = localTextInputControl.getSelection();
        return localTextInputControl.getText(localIndexRange.getStart(), localIndexRange.getEnd());
      }
    });
  }
  
  public void dispose()
  {
    caretTimeline.stop();
    caretTimeline = null;
  }
  
  protected String maskText(String paramString)
  {
    return paramString;
  }
  
  public char getCharacter(int paramInt)
  {
    return '\000';
  }
  
  public int getInsertionPoint(double paramDouble1, double paramDouble2)
  {
    return 0;
  }
  
  public Rectangle2D getCharacterBounds(int paramInt)
  {
    return null;
  }
  
  public double getLineHeight()
  {
    return ((FontMetrics)fontMetrics.get()).getLineHeight();
  }
  
  public void scrollCharacterToVisible(int paramInt) {}
  
  protected void invalidateMetrics() {}
  
  protected void updateTextFill() {}
  
  protected void updateHighlightFill() {}
  
  protected void updateHighlightTextFill() {}
  
  protected void handleInputMethodEvent(InputMethodEvent paramInputMethodEvent)
  {
    TextInputControl localTextInputControl = (TextInputControl)getSkinnable();
    if ((localTextInputControl.isEditable()) && (!localTextInputControl.textProperty().isBound()) && (!localTextInputControl.isDisabled()))
    {
      if (imlength != 0)
      {
        removeHighlight(imattrs);
        imattrs.clear();
        localTextInputControl.selectRange(imstart, imstart + imlength);
      }
      if (paramInputMethodEvent.getCommitted().length() != 0)
      {
        localObject1 = paramInputMethodEvent.getCommitted();
        localTextInputControl.replaceText(localTextInputControl.getSelection(), (String)localObject1);
      }
      imstart = localTextInputControl.getSelection().getStart();
      Object localObject1 = new StringBuilder();
      Iterator localIterator = paramInputMethodEvent.getComposed().iterator();
      Object localObject2;
      while (localIterator.hasNext())
      {
        localObject2 = (InputMethodTextRun)localIterator.next();
        ((StringBuilder)localObject1).append(((InputMethodTextRun)localObject2).getText());
      }
      imlength = ((StringBuilder)localObject1).length();
      if (imlength != 0)
      {
        localTextInputControl.replaceText(localTextInputControl.getSelection(), ((StringBuilder)localObject1).toString());
        int i = imstart;
        localObject2 = paramInputMethodEvent.getComposed().iterator();
        while (((Iterator)localObject2).hasNext())
        {
          InputMethodTextRun localInputMethodTextRun = (InputMethodTextRun)((Iterator)localObject2).next();
          int k = i + localInputMethodTextRun.getText().length();
          createInputMethodAttributes(localInputMethodTextRun.getHighlight(), i, k);
          i = k;
        }
        addHighlight(imattrs, imstart);
        int j = paramInputMethodEvent.getCaretPosition();
        if ((j >= 0) && (j < imlength)) {
          localTextInputControl
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd