Example #1
0
 /**
  * <p>
  * Decodes the content of the supplied <code>ValueState</code> as an array
  * of Objects. Usually this array has one element containing the single
  * Object value encoded in the <code>ValueState</code>.  However, if multiple
  * items were written to the original <code>Value</code> from which the
  * <code>ValueState</code> was derived in
  * <a href="com.persistit.Value.html#_streamMode">Stream Mode</a>, this
  * method returns all of the encoded objects.
  * </p>
  * <p>
  * If the <code>valueState</code> represents an undefined value, this method
  * returns an array of length zero.  If the <code>valueState</code> encodes
  * a value of <code>null</code>, then this method returns an array containing
  * one element which is <code>null</code>.
  * </p>
  *
  * @param valueState    Representation of an encoded {@link Value).
  *
  * @param context       Object passed to any {@link ValueCoder} used in
  *                      decoding the value. May be <code>null</code>
  *
  * @return              Array of zero or more Objects encoded
  *                      in the <code>ValueState</code>
  * @throws RemoteException
  */
 @Override
 public Object[] decodeValueObjects(final ValueState valueState, final CoderContext context)
     throws RemoteException {
   try {
     final Value value = new Value(_persistit);
     valueState.copyTo(value);
     value.setStreamMode(true);
     final Vector vector = new Vector();
     while (value.hasMoreItems()) {
       vector.addElement(value.get(null, context));
     }
     final Object[] result = new Object[vector.size()];
     for (int index = 0; index < result.length; index++) {
       result[index] = vector.get(index);
     }
     return result;
   } catch (final Exception e) {
     throw new WrappedRemoteException(e);
   }
 }
Example #2
0
 @Override
 public void apply(final JRSUIControl control) {
   super.apply(control);
   control.set(Key.THUMB_PROPORTION, thumbProportion);
   control.set(Key.THUMB_START, thumbStart);
 }
Example #3
0
 @Override
 public void reset() {
   super.reset();
   derivedThumbProportion = thumbProportion;
   derivedThumbStart = thumbStart;
 }
Example #4
0
 @Override
 public void apply(final JRSUIControl control) {
   super.apply(control);
   control.set(Key.WINDOW_TITLE_BAR_HEIGHT, value);
 }