All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.izforge.izpack.panels.userinput.FieldCommand Maven / Gradle / Ivy

There is a newer version: 5.2.2
Show newest version
package com.izforge.izpack.panels.userinput;

import com.izforge.izpack.panels.userinput.console.ConsoleField;
import com.izforge.izpack.panels.userinput.field.Field;
import com.izforge.izpack.panels.userinput.gui.GUIField;

/**
 * Wrapper to allow passing the create method from the FieldFactory classes.
 * This easily generate new fields, without cloning.
 * Cloning is not available with JComponent classes, and using serialization to clone can to unexpected error.
 */
public abstract class FieldCommand
{
    public GUIField createGuiField(Field field)
    {
        return null;
    }

    public ConsoleField createConsoleField(Field field)
    {
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy