![JAR search and dependency download from the Maven repository](/logo.png)
freeseawind.lf.geom.LuckProperty Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of littleluck Show documentation
Show all versions of littleluck Show documentation
Java Swing cross platform LookAndFeel
The newest version!
package freeseawind.lf.geom;
/**
*
* @author freeseawind@github
* @version 1.0
*
* @param 对象类型
*/
public class LuckProperty
{
private LuckPropertyType type;
private T field;
public LuckProperty(T field)
{
super();
this.type = LuckPropertyType.BINDPARENT;
this.field = field;
}
public LuckProperty(LuckPropertyType type, T field)
{
super();
this.type = type;
this.field = field;
}
public static LuckProperty getBindParentProp(T field)
{
return new LuckProperty(LuckPropertyType.BINDPARENT, field);
}
public static LuckProperty getFxiProp(T field)
{
return new LuckProperty(LuckPropertyType.FIX, field);
}
public void setType(LuckPropertyType type)
{
this.type = type;
}
public LuckPropertyType getType()
{
return type;
}
public T getField()
{
return field;
}
public void setField(T field)
{
this.field = field;
}
static public enum LuckPropertyType
{
BINDPARENT, FIX
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy