public ControlAttributes() { attributes = new Attributes(); }
public XmlBaseType() { attributes = new Attributes(); }
public XmlBaseType(@Nonnull final Attributes attributesParam) { attributes = new Attributes(attributesParam); }
public XmlBaseType(@Nonnull final XmlBaseType src) { attributes = new Attributes(src.attributes); }
@Nonnull @Override public XmlBaseType clone() throws CloneNotSupportedException { try { final XmlBaseType newObject = (XmlBaseType) super.clone(); newObject.attributes = new Attributes(attributes); return newObject; } catch (ClassCastException e) { throw new CloneNotSupportedException("Cloning created a object with the wrong type."); } }
/** * Support for CustomControlCreator * * @param interact */ public ControlInteractAttributes(@Nonnull final InteractType interact) { this.attributes = new Attributes(interact.getAttributes()); }
public ControlEffectAttributes( @Nonnull final Attributes attributes, @Nonnull final List<EffectValueType> effectValues) { this.attributes = new Attributes(attributes); this.effectValues = new ArrayList<EffectValueType>(effectValues); Collections.copy(this.effectValues, effectValues); }
public ControlHoverAttributes(@Nonnull final HoverType hoverType) { this.attributes = new Attributes(hoverType.getAttributes()); }
public ControlEffectOnHoverAttributes( @Nonnull final Attributes attributes, @Nonnull final List<EffectValueType> effectValues, @Nonnull final HoverType hoverType) { this.attributes = new Attributes(attributes); this.effectValues = new ArrayList<EffectValueType>(effectValues); Collections.copy(this.effectValues, effectValues); this.controlHoverAttributes = new ControlHoverAttributes(hoverType); }
/** * Process the element. * * @param xmlElement xmlElement * @throws Exception exception */ private void processElement(@Nonnull final XmlProcessor xmlElement) throws Exception { log.fine("process element: " + xmlElement.getClass().getName()); try { xmlElement.process(this, new Attributes(xpp)); } catch (Exception ex) { if (!(ex instanceof XmlPullParserException)) { throw new XmlPullParserException("Error parsing document.", xpp, ex); } else { throw ex; } } }
public ControlEffectsAttributes() { attributes = new Attributes(); effectAttributes = new EnumStorage<EffectEventId, Collection<ControlEffectAttributes>>( EffectEventId.class, CollectionFactory.<ControlEffectAttributes>getArrayListInstance()); }
public void refreshAttributes( @Nonnull final Nifty nifty, @Nonnull final Screen screen, @Nonnull final Element element, @Nonnull final ControlAttributes attributes) { Attributes attrib = new Attributes(getAttributes()); attributes.refreshAttributes(attrib); applyAttributes(screen, element, attrib, nifty.getRenderEngine()); applyPostAttributes(element, attrib, nifty.getRenderEngine()); attributes.refreshEffects(effects); element.getParent().layoutElements(); }
public ControlAttributes(@Nonnull final ElementType type) { attributes = new Attributes(type.getAttributes()); final InteractType interactType = type.getInteract(); interact = new ControlInteractAttributes(interactType); final EffectsType effectsType = type.getEffects(); effects = new ControlEffectsAttributes(effectsType); }
void resolveParameters(@Nonnull final Attributes parentAttributes) { getAttributes().resolveParameters(parentAttributes); Attributes newParent = new Attributes(parentAttributes); newParent.merge(getAttributes()); interact.resolveParameters(newParent); effects.resolveParameters(newParent); for (ElementType elementType : elements) { elementType.resolveParameters(newParent); } }
/** * Support for CustomControlCreator */ public ControlEffectsAttributes(@Nonnull final EffectsType source) { attributes = new Attributes(source.getAttributes()); effectAttributes = new EnumStorage<EffectEventId, Collection<ControlEffectAttributes>>( EffectEventId.class, CollectionFactory.<ControlEffectAttributes>getArrayListInstance()); for (EffectEventId id : EffectEventId.values()) { if (source.hasEffectTypes(id)) { source.convertCopy(id, effectAttributes.get(id)); } } }
return; Attributes parameters = new Attributes("displayItems", properties.getWithDefault("displayItems", "4")); popup = nifty.createPopupWithStyle(screen, "dropDownBoxSelectPopup", properties.get("style"), parameters); DropDownPopup<T> popupControl = popup.getControl(DropDownPopup.class);
return; Attributes parameters = new Attributes("displayItems", properties.getWithDefault("displayItems", "4")); popup = nifty.createPopupWithStyle(screen, "dropDownBoxSelectPopup", properties.get("style"), parameters); DropDownPopup<T> popupControl = popup.getControl(DropDownPopup.class);
@Nonnull final Attributes effectsTypeAttributes, @Nonnull final List<Object> controllers) { Attributes effectAttributes = new Attributes(getAttributes()); effectAttributes.merge(effectsTypeAttributes);
@Nonnull public Attributes removeStandard() { Attributes attributes = new Attributes(controlAttributes); attributes.remove("id"); attributes.remove("height");