- Renamed ButtonImage to ImageData
- Added method
setImage(Image image)
in Button class
- Fixed Input#setDefaultValue method
- Changes in FormElement#setName method
General changes:
- Changed package from
ru.contentforge.formconstructor
tocom.formconstructor
- Java 17 is now used as the main version
- All public and protected fields changed to private and added getters and setters
PlayerFormSendEvent
andPlayerFormCloseEvent
now extendFormEvent
- Added Javadoc
Changes in elements:
- All elements for simple form and custom form are allocated to the relevant packages
ImageButton
class renamed toButtonImage
CustomFormElement
class renamed toCustomElement
- Added
ElementType
enum. Now ElementType is used to specify the element type - Added
Slider
element InputBuilder
class deleted. Now the Input is created from the same Input class- Added
setImage(ImageType, String)
andonClick(SimpleFormHandler)
methods to Button element - Renamed the
getText()
method togetName()
in the SelectableElement class - Renamed the
addElement()
andaddElements()
method toaddStep()
andaddSteps()
in the StepSlider class
Changes in forms:
- Added
FormType
enum. Now FormType is used to specify the form type - Removed
addButton(SimpleFormHandler)
method from SimpleForm class - Added
addButton(String)
method to SimpleForm class - Added
addButton(String, ImageType, String)
method to SimpleForm class - Removed
HashSet<String> containsId
field from CustomForm class
Changes in responses:
- Response class renamed to FormResponse
- Renamed the
get(int)
,get(String)
, andget(String, Class)
methods in CustomFormResponse class togetElement
- Renamed the
get(Class)
method in CustomFormResponse class togetElements
- Added
getSlider(int)
,getSlider(String)
andgetSliders()
methods to CustomFormResponse class - CustomFormResponse class constructor changed from
CustomFormResponse(CustomFormHandler, ArrayList<CustomElement>, HashSet<String>, CustomForm)
toCustomFormResponse(CustomFormHandler, List<CustomElement>, CustomForm)
- Added
PlayerFormSendEvent
class - Added
PlayerFormCloseEvent
class - Added
send(Player player, boolean async)
method to Form class ModalForm
class now extendsClosableForm
class- Event handler moved from
FormConstructor
class toFormListener
class