// _Misc.txt - ControlPanel param text design
// To be used for custom layouts which cannot be
// automatically generated

// Goal - Build ControlPanel layout and Controls collection
// Sequence dependent, built in awt classes (types)
// Uses GapAll* and other styles

Library is: StandardJCON

Container hasElements:
    //----- Center panel of standard rows
    CenterPanel has::
        Base is: Panel, Separated, null
        LayoutStyle has:
            ColumnRow is: 1, 1
            End: LayoutStyle
        NestedContainer has:
            //----- Row
            PleaseLabel has:
                Base is: Label, GapAllCenter, EndRow
                Text is: Please enter the following information:
                End: PleaseLabel
            //----- Row
            FullNameLabel has:
                Base is: Label, GapAllRight, null
                Text is: Full Name
                End: FullNameLabel
            FullNameField has:
                Base is: TextField, GapAllLeft, EndRow
                Columns is: 25
                Bound is: Customer.Name
                End: FullNameField
            //----- Row
            AddressLabel has:
                Base is: Label, GapAllRight, null
                Text is: Address
                End: AddressLabel
            AddressField has:
                Base is: TextField, GapAllLeft, EndRow
                Columns is: 20
                Bound is: Customer.Address1
                End: AddressField
            //----- Row
            Address2Label has:
                Base is: Label, GapAllRight, null
                Text is:
                End: Address2Label
            Address2Field has:
                Base is: TextField, GapAllLeft, EndRow
                Columns is: 20
                Bound is: Customer.Address2
                End: Address2Field
            //----- Row
            SerialNumberLabel has:
                Base is: Label, GapAllRight, null
                Text is: Full Name
                End: SerialNumberLabel
            SerialNumberField has:
                Base is: TextField, GapAllLeft, EndRow
                Columns is: 15
                Bound is: Customer.SerialNumber
                End: SerialNumberField
            End: NestedContainer
        End: CenterPanel
    //----- Center panel of standard rows
    ButtomColumnPanel has::
        Base is: Panel, Separated, null
        LayoutStyle has:
            ColumnRow is: 2, 1
            End: LayoutStyle
        NestedContainer has:
            //----- Row
            CommitBtn has:
                Base is: Button, Separated, EndRow
                TextCommand is: Commit, CommitOrder
                LayoutStyle has:
                    // To get all buttons same width
                    Stretch is: Width
                    End: LayoutStyle
                End: CommitBtn
            //----- Row
            ForwardBtn has:
                Base is: Button, Separated, EndRow
                TextCommand is: Forward, ForwardOrder
                End: ForwardBtn
            //----- Row
            OptionPanel has:
                Base is: Panel, Separated, EndRow
                NestedContainer has:
                    //----- Button A
                    DeptABtn has:
                        Base is: Button, Separated, null
                        TextCommand is: A, DeptAForward
                        End: DeptABtn
                    //----- Button B
                    DeptBBtn has:
                        Base is: Button, Separated, null
                        TextCommand is: B, DeptBForward
                        End: DeptBBtn
                    //----- Button C
                    DeptCBtn has:
                        Base is: Button, Separated, null
                        TextCommand is: C, DeptCForward
                        End: DeptCBtn
                    End: NestedContainer
                End: OptionPanel
            //----- Row
            SnarfBtn has:
                Base is: Button, Separated, EndRow
                TextCommand is: Snarf, SnarfOrder
                End: SnarfBtn
            //----- Row
            LunchBtn has:
                Base is: Button, Separated, EndRow
                TextCommand is: Go To Lunch, LunchTime
                End: LunchBtn
            //----- Row
            CancelBtn has:
                Base is: Button, Separated, EndRow
                TextCommand is: Cancel, CancelOrder
                End: CancelBtn
            //----- Row
            CloseBtn has:
                Base is: Button, Separated, EndRow
                TextCommand is: Close, CloseOrder
                LayoutStyle has:
                    ExtraSizeHeight is: 10
                    End: LayoutStyle
                End: CloseBtn

            End: NestedContainer
        End: ButtomColumnPanel
    // Status bar not done, about the same....
    End: Container
