Пример #1
0
 @Override
 public void write(final OutputStream out) throws IOException {
   out.write(TYPE_COLOR);
   super.write(out);
   out.write(color.getRed());
   out.write(color.getGreen());
   out.write(color.getBlue());
   out.write(color.getAlpha());
 }
Пример #2
0
 @Override
 public void load(final HexFieldValue val) {
   super.load(val);
   this.color = ((HexColorValue) val).getColor();
 }