Skip to content

Commit

Permalink
Large formatting change to align to JFX best practices (4 spaces, ope…
Browse files Browse the repository at this point in the history
…n brackets on same line)

No code changes.
  • Loading branch information
Sam Cooper committed Nov 10, 2016
1 parent 3e5d075 commit c4fc920
Show file tree
Hide file tree
Showing 15 changed files with 4,817 additions and 4,784 deletions.
119 changes: 54 additions & 65 deletions src/main/java/org/dockfx/ContentHolder.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,81 +8,70 @@
*
* @author HongKee Moon
*/
public class ContentHolder
{
/**
* The enum ContentHolder Type.
*/
public enum Type {
/**
* The SplitPane.
*/
SplitPane,
/**
* The TabPane.
*/
TabPane,
/**
* The Collection.
*/
Collection,
/**
* The DockNode.
*/
DockNode
}
public class ContentHolder {
/**
* The enum ContentHolder Type.
*/
public enum Type {
/**
* The SplitPane.
*/
SplitPane,
/**
* The TabPane.
*/
TabPane,
/**
* The Collection.
*/
Collection,
/**
* The DockNode.
*/
DockNode
}

private Properties properties = new Properties();
private LinkedList children = new LinkedList();
private Type type;
private Properties properties = new Properties();
private LinkedList children = new LinkedList();
private Type type;

public ContentHolder()
{
public ContentHolder() {

}
}

public ContentHolder( Type type )
{
this.type = type;
}
public ContentHolder(Type type) {
this.type = type;
}

public void addProperty( Object key, Object value )
{
properties.put( key, value );
}
public void addProperty(Object key, Object value) {
properties.put(key, value);
}

public void addChild( Object child )
{
children.add( child );
}
public void addChild(Object child) {
children.add(child);
}

public Properties getProperties()
{
return properties;
}
public Properties getProperties() {
return properties;
}

public void setProperties( Properties properties )
{
this.properties = properties;
}
public void setProperties(Properties properties) {
this.properties = properties;
}

public LinkedList getChildren()
{
return children;
}
public LinkedList getChildren() {
return children;
}

public void setChildren( LinkedList children )
{
this.children = children;
}
public void setChildren(LinkedList children) {
this.children = children;
}

public Type getType()
{
return type;
}
public Type getType() {
return type;
}

public void setType( Type type )
{
this.type = type;
}
public void setType(Type type) {
this.type = type;
}
}
5 changes: 3 additions & 2 deletions src/main/java/org/dockfx/DelayOpenHandler.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package org.dockfx;

/**
* To support the delayed open process for some specific applications, this interface implementation is used.
* To support the delayed open process for some specific applications, this interface implementation
* is used.
*/
@FunctionalInterface
public interface DelayOpenHandler {
DockNode open(String nodeName, double width, double height);
DockNode open(String nodeName, double width, double height);
}
Loading

0 comments on commit c4fc920

Please sign in to comment.