New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IZPACK-1069] Allow dynamic views on panels #182
Conversation
configuration of the panel.
…n panel viewing panel, and when panel has been revalidated
…n panel viewing panel, and when panel has been revalidated
…upon panel viewing panel, and when panel has been revalidated
…ing upon panel viewing panel, and when panel has been revalidated
…on during upon panel viewing panel, and when panel has been revalidated
…ng upon panel viewing panel, and when panel has been revalidated
…n during upon panel viewing panel, and when panel has been revalidated
your inputs. Validation matters only whne progressing through the installer when hitting the next button. Next button should ensure good data.
…e the isDisplayed and setDisplayed provided by the GUIField
without having to first validate. The GUIField API has been extended to accomodate for this.
your components to start appearing. Specify the rigid attribute in the panel tag of the userInputSpec so that the topBuffer is interpreted as pixels.
IzPack project » izpack #390 FAILURE |
IzPack project » izpack #391 FAILURE |
Some comments:
can be simplified by moving it to UserInputConsolePanel:
should be moved to UserInputPanel.updateUIElements()
|
UserInputConsolePanel rather than in the individual field elements.
UserInputPanel rather than through the individual fields.
…ute, and updated documentation on the topBuffer attribute
IzPack project » izpack #392 FAILURE |
Thank you for the feedback! |
Do ConsoleInputField and ConsoleChoiceFIeld still need the following in display()?
|
I don't believe they do, sorry I must have missed them. |
IzPack project » izpack #393 FAILURE |
The build failure is in fact a problem on the build system itself. I've seen this more times the last couple of weeks. Sometimes Githib went down. Will try a rebuild. |
[IZPACK-1069] Allow dynamic views on panels
This is to address http://jira.codehaus.org/browse/IZPACK-1069
Refer to the link above for more information.
Allows a checkbox or radio button to show additional fields on the same userInputPanel, if conditions specified correctly. Ensures that fields are not validating during this process, validation only needs to occur when pressing the next button.
Allow specifying the topBuffer as number of pixels with the "rigid" attribute. This comes naturally and dynamically showing and hiding fields make the spacing between the top field and title change.
Let me know if anything needs clarification, and am fully open to feedback!
EDIT: Forgot to add functionality in console mode. Currently work in progress.Checks to see if a console field should be displayed have been added, but I realize it kind of duplicates the code from the updateView() method of the GUI type fields. I plan to eventually come back to this in a seperate PR and find a way to abstract this out.