Skip to content

Commit

Permalink
Move behavior implemention to the skin subpackage.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasMikula committed Jun 10, 2014
1 parent 14313c7 commit 3007f23
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
import org.fxmisc.easybind.EasyBind;
import org.fxmisc.richtext.CssProperties.EditableProperty;
import org.fxmisc.richtext.CssProperties.FontProperty;
import org.fxmisc.richtext.behavior.StyledTextAreaBehavior;
import org.fxmisc.richtext.skin.StyledTextAreaBehavior;
import org.fxmisc.richtext.skin.StyledTextAreaVisual;
import org.fxmisc.richtext.util.skin.BehaviorSkin;
import org.fxmisc.undo.UndoManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* questions.
*/

package org.fxmisc.richtext.behavior;
package org.fxmisc.richtext.skin;

import java.util.function.Function;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.fxmisc.richtext.behavior;
package org.fxmisc.richtext.skin;

import static javafx.scene.input.KeyCode.*;
import static javafx.scene.input.KeyEvent.*;
Expand All @@ -9,7 +9,7 @@

import javafx.scene.input.KeyCode;

import org.fxmisc.richtext.behavior.StyledTextAreaBehavior.Actions;
import org.fxmisc.richtext.skin.StyledTextAreaBehavior.Actions;

import com.sun.javafx.PlatformUtil;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

import com.sun.javafx.scene.text.HitInfo;

public class ParagraphCell<S> extends ListCell<Paragraph<S>> {
class ParagraphCell<S> extends ListCell<Paragraph<S>> {
private final StyledTextAreaVisual<S> visual;
private final BiConsumer<Text, S> applyStyle;
private final InvalidationListener onWrapWidthChange = obs -> requestLayout();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
import com.sun.javafx.text.PrismTextLayout;
import com.sun.javafx.text.TextLine;

public class ParagraphGraphic<S> extends TextFlow {
class ParagraphGraphic<S> extends TextFlow {

private static Method mGetTextLayout;
private static Method mGetLines;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.fxmisc.richtext.behavior;
package org.fxmisc.richtext.skin;

import static com.sun.javafx.PlatformUtil.*;
import static javafx.scene.input.MouseDragEvent.*;
Expand All @@ -19,8 +19,6 @@
import org.fxmisc.richtext.NavigationActions.SelectionPolicy;
import org.fxmisc.richtext.StyledTextArea;
import org.fxmisc.richtext.TwoDimensional.Position;
import org.fxmisc.richtext.skin.ParagraphCell;
import org.fxmisc.richtext.skin.StyledTextAreaVisual;
import org.fxmisc.richtext.util.skin.Behavior;
import org.reactfx.Subscription;

Expand Down Expand Up @@ -53,7 +51,7 @@ interface VerticalNavigation extends Action {
*/
public class StyledTextAreaBehavior implements Behavior {

public static final class Actions {
static final class Actions {
public static final Action Left = StyledTextAreaBehavior::left;
public static final Action Right = StyledTextAreaBehavior::right;
public static final Action SelectLeft = StyledTextAreaBehavior::selectLeft;
Expand Down

0 comments on commit 3007f23

Please sign in to comment.