public Control GetLocationCodeLabel()
 {
     _locationCodeLabel = VmUiBuilder.MakeValueLabel("XX.XX");
     _locationCodeLabel.AlignRight();
     _locationCodeLabel.SetPreferredSize( _locationCodeLabel.GetPreferredSize());
     return _locationCodeLabel;
 }
 public Control GetCommentLabel()
 {
     _commentLabel = VmUiBuilder.MakeIdentifierLabel(COMMENT);
     _commentLabel.AlignRight();
     _commentLabel.SetPreferredSize( _commentLabel.GetPreferredSize());
     return _commentLabel;
 }
 //# __________ PROTOCOL :: INITIALIZE COMPONENTS __________ #//
 public void InitializeComponents()
 {
     _valueLabel = MakeLabel("X                                             X");
     _valueLabel.SetPreferredSize( _valueLabel.GetPreferredSize());
     if( AlignLeftFlag )
         LeftControl = _valueLabel;
     else
         RightControl = _valueLabel;
 }
Esempio n. 4
0
        /*

        public Control MakeTagLaneWrapper()
        {
            return MakeTagLaneControl();
        }
        */
        public Control MakeTagWeightControl()
        {
            _weightLabel = VmUiBuilder.MakeValueLabel("XXXXXXX");
            _weightLabel.SetPreferredSize( _weightLabel.GetPreferredSize());
            _weightLabel.AlignRight();
            String unit = VmProperties.Default.ShouldUseMetric() ? "Kg" : "Lb";
            _weightUnitsLabel = VmUiBuilder.MakeIdentifierLabel(unit);

            JwHorizontalLayout weightPanel = new JwHorizontalLayout();
            weightPanel.AlignBottom();
            weightPanel.Gap = 2;
            weightPanel.Add(_weightLabel);
            weightPanel.Add(_weightUnitsLabel);

            return weightPanel;
        }
Esempio n. 5
0
 public Control MakeTagLaneControl()
 {
     _laneLabel = VmUiBuilder.MakeUnboldedValueLabel("                              ");
     _laneLabel.SetPreferredSize( _laneLabel.GetPreferredSize());
     _laneLabel.AlignLeft();
     return _laneLabel;
 }
Esempio n. 6
0
        public Control MakeNestSubpanel()
        {
            JwHorizontalLayout left = new JwHorizontalLayout();
            left.Gap = 1;
            left.AlignBottom();

            _pieceCountLabel = VmUiBuilder.MakeValueLabel("XXXXXXXX");
            _pieceCountLabel.SetPreferredSize(_pieceCountLabel.GetPreferredSize());
            _pieceCountLabel.AlignLeft();
            String piecesText = VmLanguage.Default.GetPieces() + ":";
            JwLabel pieceUnitLabel = VmUiBuilder.MakeIdentifierLabel(piecesText);
            left.Add(pieceUnitLabel);
            left.Add(_pieceCountLabel);

            String unit = VmProperties.Default.ShouldUseMetric() ? "Kg" : "Lb";
            _weightLabel = VmUiBuilder.MakeValueLabel("XXXXXXXXX");
            _weightLabel.SetPreferredSize(_weightLabel.GetPreferredSize());
            _weightLabel.AlignRight();
            JwLabel weightUnitLabel = VmUiBuilder.MakeIdentifierLabel(unit);
            JwHorizontalLayout right = new JwHorizontalLayout();
            right.Gap = 1;
            right.AlignBottom();
            right.Add(_weightLabel);
            right.Add(weightUnitLabel);

            JwLeftRightLayout p = new JwLeftRightLayout();
            p.LeftControl = left;
            p.RightControl = right;

            _statiticsVisibilityWrapper = new JwVisibilityWrapper(p, true);
            return _statiticsVisibilityWrapper;
        }