Adds the supplied render priority override record to this component class.
480871
public void addPriorityOverride (PriorityOverride override)
    {
        if (_overrides == null) {
            _overrides = new ComparableArrayList<PriorityOverride>();
        }
        _overrides.insertSorted(override);
    }
26363
protected void addDefaults() {
    try {
      Parser.CNode.addIdentifier("inner", InnerJoinRecordReader.class);
      Parser.CNode.addIdentifier("outer", OuterJoinRecordReader.class);
      Parser.CNode.addIdentifier("override", OverrideRecordReader.class);
      Parser.WNode.addIdentifier("tbl", WrappedRecordReader.class);
    } catch (NoSuchMethodException e) {
      throw new RuntimeException("FATAL: Failed to init defaults", e);
    }
  }
922629
public void setRenderInline(final boolean renderInline) {
		if (renderInline != getRenderInline()) {
			ImageEditModel model = getOrCreateComponentModel();
			model.renderInline = renderInline;
		}
	}
821103
public void init(Object parent, Object record)
    {
        super.init(parent, record);
        record = this.getFieldList();   // Created/set in JBaseScreen.init
        this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
        FieldTable table = ((FieldList)record).getTable();
        CalendarModel model = this.getCalendarModel(table);
        ImageIcon backgroundImage = null;
        if (this.getBaseApplet() != null)
        	backgroundImage = this.getBaseApplet().getBackgroundImage();	// Calendar panel is transparent, but this helps with rendering see-thru components 
        CalendarPanel panel = new CalendarPanel(model, true, backgroundImage);
        this.add(panel);
    }
572971
protected void setPriority(int priority)
   {
      if (tc.isEntryEnabled()) SibTr.entry(this, tc, "setPriority", ""+priority);
      this.priority = priority;
      if (tc.isEntryEnabled()) SibTr.exit(this, tc, "setPriority");      
   }
405636
public void update(int element, double priority) {
    this.doImport(element);
    final double q = this.prior.get(element);
    if (Double.compare(q, priority) == 0)
      return;
    this.prior.set(element, priority);
    if (this.pos.get(element) < 0)
      return;
    if (priority < q)
      this.down(element);
    if (q < priority)
      this.up(element);
  }
1364132
function(options, parent) {
            View.__super__.initialize.call(this, options);
            this._ensureElement();
            this.delegateEvents();

            // Rendering queue
            this.renderQueue = new Queue();

            // Components map
            this.components = {};

            // parent view
            this.parent = parent || this;

            // Model
            this.model = this.options.model || null;

            // View state
            this.is_ready = false;

            // Counter for number of active components
            this.countComponents = 0;
            return this;
        }
651747
protected void addClassEditors (BuilderModel model, String cprefix)
    {
        List<ComponentClass> classes = model.getComponentClasses();
        int size = classes.size();
        for (int ii = 0; ii < size; ii++) {
            ComponentClass cclass = classes.get(ii);
            if (!cclass.name.startsWith(cprefix)) {
                continue;
            }
            List<Integer> ccomps = model.getComponents(cclass);
            if (ccomps.size() > 0) {
                add(new ClassEditor(model, cclass, ccomps));
            } else {
                log.info("Not creating editor for empty class " +
                         "[class=" + cclass + "].");
            }
        }
    }
1101467
def add(self, handler, priority=10):
        
        self.container.add_handler(handler, priority=priority)
        return handler
102995
public void addListeners()
    {
        super.addListeners();
        
        Record recIssue = this.getMainRecord();
        SortOrderHandler keyBehavior = new SortOrderHandler(this, true);
        this.getScreenRecord().getField(IssueScreenRecord.KEY_ORDER).setValue(1);
        this.getScreenRecord().getField(IssueScreenRecord.KEY_ORDER).addListener(keyBehavior);
        
        recIssue.addListener(new CompareFileFilter(Issue.PROJECT_ID, this.getScreenRecord().getField(IssueScreenRecord.PROJECT_ID), "=", null, true));
        recIssue.addListener(new CompareFileFilter(Issue.PROJECT_VERSION_ID, this.getScreenRecord().getField(IssueScreenRecord.PROJECT_VERSION_ID), "=", null, true));
        recIssue.addListener(new CompareFileFilter(Issue.ISSUE_TYPE_ID, this.getScreenRecord().getField(IssueScreenRecord.ISSUE_TYPE_ID), "=", null, true));
        recIssue.addListener(new CompareFileFilter(Issue.ISSUE_STATUS_ID, this.getScreenRecord().getField(IssueScreenRecord.ISSUE_STATUS_ID), "=", null, true));
        recIssue.addListener(new CompareFileFilter(Issue.ASSIGNED_USER_ID, this.getScreenRecord().getField(IssueScreenRecord.ASSIGNED_USER_ID), "=", null, true));
        recIssue.addListener(new CompareFileFilter(Issue.ISSUE_PRIORITY_ID, this.getScreenRecord().getField(IssueScreenRecord.ISSUE_PRIORITY_ID), "=", null, true));
        
        this.getScreenRecord().getField(IssueScreenRecord.PROJECT_ID).addListener(new FieldReSelectHandler(this));
        this.getScreenRecord().getField(IssueScreenRecord.PROJECT_VERSION_ID).addListener(new FieldReSelectHandler(this));
        this.getScreenRecord().getField(IssueScreenRecord.ISSUE_TYPE_ID).addListener(new FieldReSelectHandler(this));
        this.getScreenRecord().getField(IssueScreenRecord.ISSUE_STATUS_ID).addListener(new FieldReSelectHandler(this));
        this.getScreenRecord().getField(IssueScreenRecord.ASSIGNED_USER_ID).addListener(new FieldReSelectHandler(this));
        this.getScreenRecord().getField(IssueScreenRecord.ISSUE_PRIORITY_ID).addListener(new FieldReSelectHandler(this));
        this.getScreenRecord().getField(IssueScreenRecord.PROJECT_ID).addListener(new FieldReSelectHandler(this));
        
        this.getScreenRecord().getField(IssueScreenRecord.PROJECT_VERSION_ID).addListener(new RegisterValueHandler(null));
        this.getScreenRecord().getField(IssueScreenRecord.ISSUE_TYPE_ID).addListener(new RegisterValueHandler(null));
        this.getScreenRecord().getField(IssueScreenRecord.ISSUE_STATUS_ID).addListener(new RegisterValueHandler(null));
        this.getScreenRecord().getField(IssueScreenRecord.ASSIGNED_USER_ID).addListener(new RegisterValueHandler(null));
        this.getScreenRecord().getField(IssueScreenRecord.ISSUE_PRIORITY_ID).addListener(new RegisterValueHandler(null));
    }
363111
def addRecord(self, record):
        
        label_mapper    = self.labelMapper()
        icon_mapper     = self.iconMapper()
        
        self.addItem(label_mapper(record))
        self.setItemData(self.count() - 1, wrapVariant(record), Qt.UserRole)
        
        # load icon
        if icon_mapper:
            self.setItemIcon(self.count() - 1, icon_mapper(record))
        
        if self.showTreePopup():
            XOrbRecordItem(self.treePopupWidget(), record)
669186
public Entity add (Component component) {
		if (addInternal(component)) {
			if (componentOperationHandler != null) {
				componentOperationHandler.add(this);
			}
			else {
				notifyComponentAdded();
			}
		}
		
		return this;
	}
929099
def push(self):
        
        if self.comm is None:
            raise Exception('Renderer does not have a comm.')
        diff = self.renderer.diff(self)
        self.comm.send(diff)
479030
function(options) {
            this.options = options;
            this.init(options);
            this.render = Augmented.Utility.wrap(this.render, function(render) {
              this.beforeRender();
              render.apply(this);
              this.afterRender();
              return this;
            });
          }
361408
protected function setDataPanelComponentsIndexOrder()
    {
        if (!empty($this->data_order['data']['components'])) {

            $this->setItemOrderCartComponent($this->data_order, $this->price);
            $this->setItemOrderPriceRuleComponent($this->data_order, $this->price, $this->pricerule);
            $this->setItemOrderPaymentComponent($this->data_order, $this->price, $this->payment, $this->order);
            $this->setItemOrderShippingComponent($this->data_order, $this->price, $this->shipping, $this->order);

            ksort($this->data_order['data']['components']);
        }

        $this->setData('pane_components', $this->render('sale/order/panes/components', array('order' => $this->data_order)));
    }
728014
function() {
      inputEx.MultiSelectField.superclass.renderComponent.call(this);
      
      this.ddlist = new inputEx.widget.ListCustom({parentEl: this.fieldContainer,listSelectOptions: this.listSelectOptions, maxItems: this.maxItems, maxItemsAlert: this.maxItemsAlert });
      
   }
1280798
protected <T extends IComponent> void addComponent(Class<T> componentType, T component) {
        components.put(componentType, component);
    }