コード例 #1
0
        public override bool Equals(System.Object object_Renamed)
        {
            bool isEqual = false;

            if (base.Equals(object_Renamed) && (object_Renamed is DefineEditText))
            {
                DefineEditText defineEditText = (DefineEditText)object_Renamed;

                if (equals(defineEditText.bounds, this.bounds) && (defineEditText.hasText == this.hasText) && (defineEditText.wordWrap == this.wordWrap) && (defineEditText.multiline == this.multiline) && (defineEditText.password == this.password) && (defineEditText.readOnly == this.readOnly) && (defineEditText.hasTextColor == this.hasTextColor) && (defineEditText.hasMaxLength == this.hasMaxLength) && (defineEditText.hasFont == this.hasFont) && (defineEditText.autoSize == this.autoSize) && (defineEditText.hasLayout == this.hasLayout) && (defineEditText.noSelect == this.noSelect) && (defineEditText.border == this.border) && (defineEditText.wasStatic == this.wasStatic) && (defineEditText.html == this.html) && (defineEditText.useOutlines == this.useOutlines) && equals(defineEditText.font, this.font) && (defineEditText.height == this.height) && (defineEditText.color == this.color) && (defineEditText.maxLength == this.maxLength) && (defineEditText.align == this.align) && (defineEditText.leftMargin == this.leftMargin) && (defineEditText.rightMargin == this.rightMargin) && (defineEditText.ident == this.ident) && (defineEditText.leading == this.leading) && equals(defineEditText.varName, this.varName) && equals(defineEditText.initialText, this.initialText))
                {
                    isEqual = true;
                }
            }

            return(isEqual);
        }
コード例 #2
0
		public override void  defineEditText(DefineEditText tag)
		{
			tags.Add(tag);
		}
コード例 #3
0
		public virtual void  defineEditText(DefineEditText tag)
		{
		}
コード例 #4
0
		private Tag decodeDefineEditText()
		{
			DefineEditText t;
			t = new DefineEditText();
			int id = r.readUI16();
			t.bounds = decodeRect();
			
			r.syncBits();
			
			t.hasText = r.readBit();
			t.wordWrap = r.readBit();
			t.multiline = r.readBit();
			t.password = r.readBit();
			t.readOnly = r.readBit();
			t.hasTextColor = r.readBit();
			t.hasMaxLength = r.readBit();
			t.hasFont = r.readBit();
			r.readBit(); // reserved
			t.autoSize = r.readBit();
			t.hasLayout = r.readBit();
			t.noSelect = r.readBit();
			t.border = r.readBit();
			t.wasStatic = r.readBit();
			t.html = r.readBit();
			t.useOutlines = r.readBit();
			
			if (t.hasFont)
			{
				int idref = r.readUI16();
				t.font = (DefineFont) dict.getTag(idref);
				t.height = r.readUI16();
			}
			
			if (t.hasTextColor)
			{
				t.color = decodeRGBA(r);
			}
			
			if (t.hasMaxLength)
			{
				t.maxLength = r.readUI16();
			}
			
			if (t.hasLayout)
			{
				t.align = r.readUI8();
				t.leftMargin = r.readUI16();
				t.rightMargin = r.readUI16();
				t.ident = r.readUI16();
				t.leading = r.readSI16(); // see errata, leading is signed
			}
			
			t.varName = r.readString();
			
			if (t.hasText)
			{
				t.initialText = r.readString();
			}
			
			dict.add(id, t);
			return t;
		}