rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
try { sc.invoke(shutdownLoggerObjectName, "stop", new Object[0], new String[0]); sc.invoke(shutdownLoggerObjectName, "destroy", new Object[0], new String[0]); sc.unregisterService(shutdownLoggerObjectName); } catch (Exception ignore) { } | public void stopServerPeer() throws Exception { try { // if we don't find a ServerPeer instance registered under the serverPeerObjectName // ObjectName, we assume that the server was already stopped and we silently exit if (sc.query(serverPeerObjectName).isEmpty()) { ... | |
public ServiceContainer(String sevicesToStart, TransactionManager tm) throws Exception | public ServiceContainer(String sevicesToStart) throws Exception | public ServiceContainer(String sevicesToStart, TransactionManager tm) throws Exception { this.tm = tm; parseConfig(sevicesToStart); toUnbindAtExit = new ArrayList(); } |
this.tm = tm; parseConfig(sevicesToStart); toUnbindAtExit = new ArrayList(); | this(sevicesToStart, null); | public ServiceContainer(String sevicesToStart, TransactionManager tm) throws Exception { this.tm = tm; parseConfig(sevicesToStart); toUnbindAtExit = new ArrayList(); } |
binding = new ClusteredBindingImpl(nodeId, queueName, condition, filterString, | binding = new ClusteredBindingImpl(nodeId, queueName, condition, new Selector(filterString), | public void addBindingFromCluster(String nodeId, String queueName, String condition, String filterString, long channelID, boolean durable) throws Exception { lock.writeLock().acquire(); try { //Sanity if (!nodeIdAddr... |
Queue queue = binding.getQueue(); | ClusteredQueue queue = (ClusteredQueue)binding.getQueue(); | public void addToQueue(String queueName, List messages) throws Exception { lock.readLock().acquire(); try { Binding binding = this.getBindingForQueueName(queueName); if (binding == null) { throw new IllegalStateException("Cannot find bind... |
queue.handleDontPersist(null, ref, null); | queue.handleFromCluster(null, ref, null); | public void addToQueue(String queueName, List messages) throws Exception { lock.readLock().acquire(); try { Binding binding = this.getBindingForQueueName(queueName); if (binding == null) { throw new IllegalStateException("Cannot find bind... |
public ClusteredBinding bindClusteredQueue(String queueName, String condition, ClusteredQueue queue) throws Exception | public ClusteredBinding bindClusteredQueue(String queueName, String condition, Filter filter, ClusteredQueue queue) throws Exception | public ClusteredBinding bindClusteredQueue(String queueName, String condition, ClusteredQueue queue) throws Exception { ClusteredBinding binding = (ClusteredBinding)super.bindQueue(queueName, condition, queue); boolean durable = queue.isRecoverable(); String filter = queue.get... |
ClusteredBinding binding = (ClusteredBinding)super.bindQueue(queueName, condition, queue); | ClusteredBinding binding = (ClusteredBinding)super.bindQueue(queueName, condition, filter, queue); | public ClusteredBinding bindClusteredQueue(String queueName, String condition, ClusteredQueue queue) throws Exception { ClusteredBinding binding = (ClusteredBinding)super.bindQueue(queueName, condition, queue); boolean durable = queue.isRecoverable(); String filter = queue.get... |
String filter = queue.getFilter() == null ? null : queue.getFilter().getFilterString(); | public ClusteredBinding bindClusteredQueue(String queueName, String condition, ClusteredQueue queue) throws Exception { ClusteredBinding binding = (ClusteredBinding)super.bindQueue(queueName, condition, queue); boolean durable = queue.isRecoverable(); String filter = queue.get... | |
new BindRequest(nodeId, queueName, condition, filter, | new BindRequest(nodeId, queueName, condition, filter == null ? null : filter.getFilterString(), | public ClusteredBinding bindClusteredQueue(String queueName, String condition, ClusteredQueue queue) throws Exception { ClusteredBinding binding = (ClusteredBinding)super.bindQueue(queueName, condition, queue); boolean durable = queue.isRecoverable(); String filter = queue.get... |
protected Binding createBinding(String nodeId, String queueName, String condition, String filter, long channelId, boolean durable) | protected Binding createBinding(String nodeId, String queueName, String condition, Filter filter, long channelId, boolean durable) throws Exception | protected Binding createBinding(String nodeId, String queueName, String condition, String filter, long channelId, boolean durable) { return new ClusteredBindingImpl(nodeId, queueName, condition, filter, channelId, durable); } |
if (binding.getNodeId().equals(this.nodeId)) | Filter filter = binding.getFilter(); if (filter != null && filter.accept(ref)) | public boolean route(MessageReference ref, String condition, Transaction tx) throws Exception { if (ref == null) { throw new IllegalArgumentException("Message reference is null"); } if (condition == null) { throw new IllegalArgumentException("Condition is null"); ... |
Queue queue = binding.getQueue(); Delivery del = queue.handle(null, ref, tx); | if (binding.getNodeId().equals(this.nodeId)) { Queue queue = binding.getQueue(); | public boolean route(MessageReference ref, String condition, Transaction tx) throws Exception { if (ref == null) { throw new IllegalArgumentException("Message reference is null"); } if (condition == null) { throw new IllegalArgumentException("Condition is null"); ... |
if (del != null && del.isSelectorAccepted()) | Delivery del = queue.handle(null, ref, tx); if (del != null && del.isSelectorAccepted()) { routed = true; } } else | public boolean route(MessageReference ref, String condition, Transaction tx) throws Exception { if (ref == null) { throw new IllegalArgumentException("Message reference is null"); } if (condition == null) { throw new IllegalArgumentException("Condition is null"); ... |
} else { numberRemote++; if (ref.isReliable() && binding.isDurable()) { pm.addReference(binding.getChannelId(), ref, tx); } routed = true; } | } | public boolean route(MessageReference ref, String condition, Transaction tx) throws Exception { if (ref == null) { throw new IllegalArgumentException("Message reference is null"); } if (condition == null) { throw new IllegalArgumentException("Condition is null"); ... |
Queue subscription = binding.getQueue(); | ClusteredQueue queue = (ClusteredQueue)binding.getQueue(); | public void routeFromCluster(org.jboss.messaging.core.Message message, String routingKey, Map queueNameNodeIdMap) throws Exception { lock.readLock().acquire(); // Need to reference the message MessageReference ref = null; try { ref = ms.refere... |
subscription.handleDontPersist(null, ref, null); | queue.handleFromCluster(null, ref, null); | public void routeFromCluster(org.jboss.messaging.core.Message message, String routingKey, Map queueNameNodeIdMap) throws Exception { lock.readLock().acquire(); // Need to reference the message MessageReference ref = null; try { ref = ms.refere... |
ClusteredQueue q = (ClusteredQueue)bb.getQueue(); double newRate = q.getGrowthRate(); int newMessageCount = q.messageCount(); boolean sendStats = decideToSendStats(bb.getConsumptionRate(), newRate); if (!sendStats) { sendStats = decideToSendStats(bb.getMessageCount(), newMessageCount); | if (bb.isActive()) { ClusteredQueue q = (ClusteredQueue)bb.getQueue(); double newRate = q.getGrowthRate(); int newMessageCount = q.messageCount(); boolean sendStats = decideToSendStats(bb.getConsumptionRate(), newRate); if (!sendStats) { sendStats = decideToSendStats(bb.getMessageCount(), newMessageCount); } if ... | public void sendStats() throws Exception { lock.writeLock().acquire(); List stats = null; try { Map nameMap = (Map)nameMaps.get(nodeId); if (nameMap != null) { Iterator iter = nameMap.values().iterator(); ... |
if (sendStats) { bb.setConsumptionRate(newRate); bb.setMessageCount(newMessageCount); if (stats == null) { stats = new ArrayList(); } QueueStats qs = new QueueStats(bb.getQueueName(), newRate, newMessageCount); stats.add(qs); } | public void sendStats() throws Exception { lock.writeLock().acquire(); List stats = null; try { Map nameMap = (Map)nameMaps.get(nodeId); if (nameMap != null) { Iterator iter = nameMap.values().iterator(); ... | |
public PostOfficeImpl(DataSource ds, TransactionManager tm, Properties sqlProperties, boolean createTablesOnStartup, String nodeId, String officeName, MessageStore ms, TransactionRepository tr) { super (ds, tm, sqlProperties, createTablesOnStartup); lock = new WriterPreferenceReadWriteLock(); nameMaps = new LinkedHas... | public PostOfficeImpl() { | public PostOfficeImpl(DataSource ds, TransactionManager tm, Properties sqlProperties, boolean createTablesOnStartup, String nodeId, String officeName, MessageStore ms, TransactionRepository tr) { super (ds, tm, sqlProperties, ... |
void addBindingFromCluster(String nodeId, String queueName, String condition, | void addBindingFromCluster(int nodeId, String queueName, String condition, | void addBindingFromCluster(String nodeId, String queueName, String condition, String filterString, long channelId, boolean durable) throws Exception; |
public ClusteredBindingImpl(String nodeId, String queueName, String condition, String selector, long channelId, boolean durable) | public ClusteredBindingImpl() | public ClusteredBindingImpl(String nodeId, String queueName, String condition, String selector, long channelId, boolean durable) { super(nodeId, queueName, condition, selector, channelId, durable); } |
super(nodeId, queueName, condition, selector, channelId, durable); | public ClusteredBindingImpl(String nodeId, String queueName, String condition, String selector, long channelId, boolean durable) { super(nodeId, queueName, condition, selector, channelId, durable); } | |
ClusteredBinding bindClusteredQueue(String queueName, String condition, ClusteredQueue queue) throws Exception; | ClusteredBinding bindClusteredQueue(String queueName, String condition, Filter filter, ClusteredQueue queue) throws Exception; | ClusteredBinding bindClusteredQueue(String queueName, String condition, ClusteredQueue queue) throws Exception; |
public Binding bindQueue(String queueName, String condition, Queue queue) throws Exception | public Binding bindQueue(String queueName, String condition, Filter filter, Queue queue) throws Exception | public Binding bindQueue(String queueName, String condition, Queue queue) throws Exception { if (queueName == null) { throw new IllegalArgumentException("Queue name is null"); } if (condition == null) { throw new IllegalArgumentException("Condition is null"); } ... |
String filter = queue.getFilter() == null ? null : queue.getFilter().getFilterString(); | public Binding bindQueue(String queueName, String condition, Queue queue) throws Exception { if (queueName == null) { throw new IllegalArgumentException("Queue name is null"); } if (condition == null) { throw new IllegalArgumentException("Condition is null"); } ... | |
BindRequest(String nodeId, String queueName, String condition, String filterString, long channelId, boolean durable) { bindingInfo = new BindingInfo(nodeId, queueName, condition, filterString, channelId, durable); | BindRequest() { | BindRequest(String nodeId, String queueName, String condition, String filterString, long channelId, boolean durable) { bindingInfo = new BindingInfo(nodeId, queueName, condition, filterString, channelId, durable); } |
void check(String nodeId) throws Throwable; | void check(int nodeId) throws Throwable; | void check(String nodeId) throws Throwable; |
String getNodeId() | int getNodeId() | String getNodeId() { return nodeId; } |
protected Binding createBinding(String nodeId, String queueName, String condition, String filter, long channelId, boolean durable) { | protected Binding createBinding(String nodeId, String queueName, String condition, Filter filter, long channelId, boolean durable) throws Exception { | protected Binding createBinding(String nodeId, String queueName, String condition, String filter, long channelId, boolean durable) { return new BindingImpl(nodeId, queueName, condition, filter, channelId, durable); } |
void handleAddressNodeMapping(Address address, String nodeId) | void handleAddressNodeMapping(Address address, int nodeId) | void handleAddressNodeMapping(Address address, String nodeId) throws Exception; |
public Transaction createTransaction() throws TransactionException | public Transaction createTransaction(Xid xid) throws TransactionException | public Transaction createTransaction() throws TransactionException { Transaction tx = new Transaction(null, transactionLog); if (log.isTraceEnabled()) { log.trace("created transaction " + tx); } return tx; } |
Transaction tx = new Transaction(null, transactionLog); | if (globalToLocalMap.containsKey(xid)) { throw new TransactionException("There is already a local tx for global tx " + xid); } Transaction tx = new Transaction(xid, transactionLog); | public Transaction createTransaction() throws TransactionException { Transaction tx = new Transaction(null, transactionLog); if (log.isTraceEnabled()) { log.trace("created transaction " + tx); } return tx; } |
globalToLocalMap.put(xid, tx); | public Transaction createTransaction() throws TransactionException { Transaction tx = new Transaction(null, transactionLog); if (log.isTraceEnabled()) { log.trace("created transaction " + tx); } return tx; } | |
Iterator iter = postCommitTasks.iterator(); | Iterator iter = callbacks.iterator(); | public void commit() throws Exception { if (state == STATE_ROLLBACK_ONLY) { throw new TransactionException("Transaction marked rollback only, cannot commit"); } if (log.isTraceEnabled()) { log.trace("committing " + this); } //TODO - commit the tx in the database state = ... |
Runnable task = (Runnable)iter.next(); task.run(); | TxCallback callback = (TxCallback)iter.next(); callback.afterCommit(); | public void commit() throws Exception { if (state == STATE_ROLLBACK_ONLY) { throw new TransactionException("Transaction marked rollback only, cannot commit"); } if (log.isTraceEnabled()) { log.trace("committing " + this); } //TODO - commit the tx in the database state = ... |
CheckRequest(String nodeId) { this.nodeId = nodeId; | CheckRequest() { | CheckRequest(String nodeId) { this.nodeId = nodeId; } |
void removeBindingFromCluster(String nodeId, String queueName) | void removeBindingFromCluster(int nodeId, String queueName) | void removeBindingFromCluster(String nodeId, String queueName) throws Exception; |
Queue subscription = binding.getQueue(); Delivery del = subscription.handle(null, ref, tx); | Queue queue = binding.getQueue(); | public boolean route(MessageReference ref, String condition, Transaction tx) throws Exception { if (ref == null) { throw new IllegalArgumentException("Message reference is null"); } if (condition == null) { throw new IllegalArgumentException("Condition key is null"); ... |
if (del != null && del.isSelectorAccepted()) | Filter filter = binding.getFilter(); if (filter != null && filter.accept(ref)) | public boolean route(MessageReference ref, String condition, Transaction tx) throws Exception { if (ref == null) { throw new IllegalArgumentException("Message reference is null"); } if (condition == null) { throw new IllegalArgumentException("Condition key is null"); ... |
routed = true; | Delivery del = queue.handle(null, ref, tx); if (del != null && del.isSelectorAccepted()) { routed = true; } | public boolean route(MessageReference ref, String condition, Transaction tx) throws Exception { if (ref == null) { throw new IllegalArgumentException("Message reference is null"); } if (condition == null) { throw new IllegalArgumentException("Condition key is null"); ... |
CastMessagesCallback(String nodeId, long txId, PostOfficeInternal office) | CastMessagesCallback(int nodeId, long txId, PostOfficeInternal office) | CastMessagesCallback(String nodeId, long txId, PostOfficeInternal office) { this.nodeId = nodeId; this.txId = txId; this.office = office; } |
String lastNodeId, long channelID) | int lastNodeId, long channelID) | void addMessage(String routingKey, Message message, Map queueNameToNodeIdMap, String lastNodeId, long channelID) { //If we only ever send messages to the same node for this tx, then we can unicast rather than multicast //This is how we determine that if (lastNodeId == null) { ... |
if (lastNodeId == null) | if (lastNodeId == -1) | void addMessage(String routingKey, Message message, Map queueNameToNodeIdMap, String lastNodeId, long channelID) { //If we only ever send messages to the same node for this tx, then we can unicast rather than multicast //This is how we determine that if (lastNodeId == null) { ... |
if (!lastNodeId.equals(toNodeId)) | if (lastNodeId != toNodeId) | void addMessage(String routingKey, Message message, Map queueNameToNodeIdMap, String lastNodeId, long channelID) { //If we only ever send messages to the same node for this tx, then we can unicast rather than multicast //This is how we determine that if (lastNodeId == null) { ... |
QueueStatsRequest(String nodeId, List stats) { this.nodeId = nodeId; this.queueStats = stats; | QueueStatsRequest() { | QueueStatsRequest(String nodeId, List stats) { this.nodeId = nodeId; this.queueStats = stats; } |
SendNodeIdRequest(Address address, String nodeId) { this.address = address; this.nodeId = nodeId; | SendNodeIdRequest() { | SendNodeIdRequest(Address address, String nodeId) { this.address = address; this.nodeId = nodeId; } |
UnbindRequest(String nodeId, String queueName) { this.nodeId = nodeId; this.queueName = queueName; | UnbindRequest() { | UnbindRequest(String nodeId, String queueName) { this.nodeId = nodeId; this.queueName = queueName; } |
void updateQueueStats(String nodeId, List stats) throws Exception; | void updateQueueStats(int nodeId, List stats) throws Exception; | void updateQueueStats(String nodeId, List stats) throws Exception; |
void addFirst(Object obj, int priority); | boolean addFirst(Object obj, int priority); | void addFirst(Object obj, int priority); |
void addLast(Object obj, int priority); | boolean addLast(Object obj, int priority); | void addLast(Object obj, int priority); |
public JSlider() { } | public JSlider() { this(HORIZONTAL, 0, 100, 50); } | public JSlider() { // TODO } // JSlider() |
public void addChangeListener(ChangeListener listener) { } | public void addChangeListener(ChangeListener listener) { changeListenerList.add(ChangeListener.class, listener); } | public void addChangeListener(ChangeListener listener) { // TODO } // addChangeListener() |
protected ChangeListener createChangeListener() { return null; } | protected ChangeListener createChangeListener() { return new ChangeListener() { public void stateChanged(ChangeEvent ce) { fireStateChanged(); } }; } | protected ChangeListener createChangeListener() { return null; // TODO } // createChangeListener() |
public Hashtable createStandardLabels(int increment) { return null; } | public Hashtable createStandardLabels(int increment) { return createStandardLabels(increment, sliderModel.getMinimum()); } | public Hashtable createStandardLabels(int increment) { return null; // TODO } // createStandardLabels() |
protected void fireStateChanged() { } | protected void fireStateChanged() { Object[] changeListeners = changeListenerList.getListenerList(); if (changeEvent == null) changeEvent = new ChangeEvent(this); for (int i = changeListeners.length - 2; i >= 0; i -= 2) { if (changeListeners[i] == ChangeListener.class) ((ChangeListener) changeListeners[i + 1]).stateCha... | protected void fireStateChanged() { // TODO } // fireStateChanged() |
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJSlider(this); } return accessibleContext; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJSlider(this); return accessibleContext; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJSlider(this); } // if return accessibleContext; } // getAccessibleContext() |
public int getExtent() { return 0; } | public int getExtent() { return sliderModel.getExtent(); } | public int getExtent() { return 0; // TODO } // getExtent() |
public boolean getInverted() { return false; } | public boolean getInverted() { return isInverted; } | public boolean getInverted() { return false; // TODO } // getInverted() |
public Dictionary getLabelTable() { return null; } | public Dictionary getLabelTable() { return labelTable; } | public Dictionary getLabelTable() { return null; // TODO } // getLabelTable() |
public int getMajorTickSpacing() { return 0; } | public int getMajorTickSpacing() { return majorTickSpacing; } | public int getMajorTickSpacing() { return 0; // TODO } // getMajorTickSpacing() |
public int getMaximum() { return 0; } | public int getMaximum() { return sliderModel.getMaximum(); } | public int getMaximum() { return 0; // TODO } // getMaximum() |
public int getMinimum() { return 0; } | public int getMinimum() { return sliderModel.getMinimum(); } | public int getMinimum() { return 0; // TODO } // getMinimum() |
public int getMinorTickSpacing() { return 0; } | public int getMinorTickSpacing() { return minorTickSpacing; } | public int getMinorTickSpacing() { return 0; // TODO } // getMinorTickSpacing() |
public BoundedRangeModel getModel() { return null; } | public BoundedRangeModel getModel() { return sliderModel; } | public BoundedRangeModel getModel() { return null; // TODO } // getModel() |
public boolean getPaintLabels() { return false; } | public boolean getPaintLabels() { return paintLabels; } | public boolean getPaintLabels() { return false; // TODO } // getPaintLabels() |
public boolean getPaintTicks() { return false; } | public boolean getPaintTicks() { return paintTicks; } | public boolean getPaintTicks() { return false; // TODO } // getPaintTicks() |
public boolean getPaintTrack() { return false; } | public boolean getPaintTrack() { return paintTrack; } | public boolean getPaintTrack() { return false; // TODO } // getPaintTrack() |
public boolean getSnapToTicks() { return false; } | public boolean getSnapToTicks() { return snapToTicks; } | public boolean getSnapToTicks() { return false; // TODO } // getSnapToTicks() |
public String getUIClassID() { return uiClassID; } | public String getUIClassID() { return "SliderUI"; } | public String getUIClassID() { return uiClassID; } // getUIClassID() |
public int getValue() { return 0; } | public int getValue() { return sliderModel.getValue(); } | public int getValue() { return 0; // TODO } // getValue() |
public boolean getValueIsAdjusting() { return false; } | public boolean getValueIsAdjusting() { return sliderModel.getValueIsAdjusting(); } | public boolean getValueIsAdjusting() { return false; // TODO } // getValueIsAdjusting() |
protected String paramString() { return null; } | protected String paramString() { return "JSlider"; } | protected String paramString() { return null; // TODO } // paramString() |
public void removeChangeListener(ChangeListener listener) { } | public void removeChangeListener(ChangeListener listener) { changeListenerList.remove(ChangeListener.class, listener); } | public void removeChangeListener(ChangeListener listener) { // TODO } // removeChangeListener() |
public void setExtent(int extent) { } | public void setExtent(int extent) { sliderModel.setExtent(extent); } | public void setExtent(int extent) { // TODO } // setExtent() |
public void setInverted(boolean inverted) { } | public void setInverted(boolean inverted) { if (isInverted != inverted) { boolean oldInverted = isInverted; isInverted = inverted; firePropertyChange(INVERTED_CHANGED_PROPERTY, oldInverted, isInverted); } } | public void setInverted(boolean inverted) { // TODO } // setInverted() |
public void setLabelTable(Dictionary table) { } | public void setLabelTable(Dictionary table) { if (table != labelTable) { Dictionary oldTable = labelTable; labelTable = table; firePropertyChange(LABEL_TABLE_CHANGED_PROPERTY, oldTable, labelTable); } } | public void setLabelTable(Dictionary table) { // TODO } // setLabelTable() |
public void setMajorTickSpacing(int spacing) { } | public void setMajorTickSpacing(int spacing) { if (majorTickSpacing != spacing) { int oldSpacing = majorTickSpacing; majorTickSpacing = spacing; firePropertyChange(MAJOR_TICK_SPACING_CHANGED_PROPERTY, oldSpacing, majorTickSpacing); } } | public void setMajorTickSpacing(int spacing) { // TODO } // setMajorTickSpacing() |
public void setMaximum(int maximum) { } | public void setMaximum(int maximum) { sliderModel.setMaximum(maximum); } | public void setMaximum(int maximum) { // TODO } // setMaximum() |
public void setMinimum(int minimum) { } | public void setMinimum(int minimum) { sliderModel.setMinimum(minimum); } | public void setMinimum(int minimum) { // TODO } // setMinimum() |
public void setMinorTickSpacing(int spacing) { } | public void setMinorTickSpacing(int spacing) { if (minorTickSpacing != spacing) { int oldSpacing = minorTickSpacing; minorTickSpacing = spacing; firePropertyChange(MINOR_TICK_SPACING_CHANGED_PROPERTY, oldSpacing, minorTickSpacing); } } | public void setMinorTickSpacing(int spacing) { // TODO } // setMinorTickSpacing() |
public void setModel(BoundedRangeModel model) { } | public void setModel(BoundedRangeModel model) { if (model != sliderModel) { BoundedRangeModel oldModel = sliderModel; sliderModel = model; oldModel.removeChangeListener(changeListener); sliderModel.addChangeListener(changeListener); firePropertyChange(MODEL_CHANGED_PROPERTY, oldModel, sliderModel); } } | public void setModel(BoundedRangeModel model) { // TODO } // setModel() |
public void setOrientation(int orientation) { } | public void setOrientation(int orientation) { if (orientation != VERTICAL && orientation != HORIZONTAL) throw new IllegalArgumentException("orientation must be one of: VERTICAL, HORIZONTAL"); if (orientation != this.orientation) { int oldOrientation = this.orientation; this.orientation = orientation; firePropertyChange... | public void setOrientation(int orientation) { // TODO } // setOrientation() |
public void setPaintLabels(boolean paint) { } | public void setPaintLabels(boolean paint) { if (paint != paintLabels) { boolean oldPaintLabels = paintLabels; paintLabels = paint; firePropertyChange(PAINT_LABELS_CHANGED_PROPERTY, oldPaintLabels, paintLabels); } } | public void setPaintLabels(boolean paint) { // TODO } // setPaintLabels() |
public void setPaintTicks(boolean paint) { } | public void setPaintTicks(boolean paint) { if (paint != paintTicks) { boolean oldPaintTicks = paintTicks; paintTicks = paint; firePropertyChange(PAINT_TICKS_CHANGED_PROPERTY, oldPaintTicks, paintTicks); } } | public void setPaintTicks(boolean paint) { // TODO } // setPaintTicks() |
public void setPaintTrack(boolean paint) { } | public void setPaintTrack(boolean paint) { paintTrack = paint; } | public void setPaintTrack(boolean paint) { // TODO } // setPaintTrack() |
public void setSnapToTicks(boolean snap) { } | public void setSnapToTicks(boolean snap) { if (snap != snapToTicks) { snapToTicks = snap; fireStateChanged(); } } | public void setSnapToTicks(boolean snap) { // TODO } // setSnapToTicks() |
public void setValue(int value) { } | public void setValue(int value) { sliderModel.setValue(value); } | public void setValue(int value) { // TODO } // setValue() |
public void setValueIsAdjusting(boolean adjusting) { } | public void setValueIsAdjusting(boolean adjusting) { sliderModel.setValueIsAdjusting(adjusting); } | public void setValueIsAdjusting(boolean adjusting) { // TODO } // setValueIsAdjusting() |
protected void updateLabelUIs() { } | protected void updateLabelUIs() { if (labelTable == null) return; for (Enumeration list = labelTable.elements(); list.hasMoreElements();) { JLabel label = (JLabel) list.nextElement(); label.updateUI(); } } | protected void updateLabelUIs() { // TODO } // updateLabelUIs() |
public void updateUI() { setUI((SliderUI) UIManager.get(this)); invalidate(); } | public void updateUI() { setUI((SliderUI) UIManager.getUI(this)); invalidate(); repaint(); } | public void updateUI() { setUI((SliderUI) UIManager.get(this)); invalidate(); } // updateUI() |
public EventListenerList() { listenerList = new Object[0]; } | public EventListenerList() { } | public EventListenerList() { listenerList = new Object[0]; } // EventListenerList() |
public void add(Class t, EventListener listener) { | public void add(Class t, EventListener listener) { int oldLength; Object[] newList; | public void add(Class t, EventListener listener) { // Variables Object[] list; int index; Class checkClass; EventListener checkListener; // Create New list in anticipation that listener is not present list = new Object[listenerList.length + 2]; // Search through list looking for listener for (index = 0;... |
Object[] list; int index; Class checkClass; EventListener checkListener; | if (listener == null) return; | public void add(Class t, EventListener listener) { // Variables Object[] list; int index; Class checkClass; EventListener checkListener; // Create New list in anticipation that listener is not present list = new Object[listenerList.length + 2]; // Search through list looking for listener for (index = 0;... |
list = new Object[listenerList.length + 2]; | if (!t.isInstance(listener)) throw new IllegalArgumentException(); | public void add(Class t, EventListener listener) { // Variables Object[] list; int index; Class checkClass; EventListener checkListener; // Create New list in anticipation that listener is not present list = new Object[listenerList.length + 2]; // Search through list looking for listener for (index = 0;... |
for (index = 0; index < listenerList.length; index += 2) { checkClass = (Class) listenerList[index]; checkListener = (EventListener) listenerList[index + 1]; if (checkClass.equals(t) == true && checkListener.equals(listener) == true) { return; } } | oldLength = listenerList.length; newList = new Object[oldLength + 2]; if (oldLength > 0) System.arraycopy(listenerList, 0, newList, 0, oldLength); | public void add(Class t, EventListener listener) { // Variables Object[] list; int index; Class checkClass; EventListener checkListener; // Create New list in anticipation that listener is not present list = new Object[listenerList.length + 2]; // Search through list looking for listener for (index = 0;... |
list[listenerList.length] = t; list[listenerList.length + 1] = listener; listenerList = list; } | newList[oldLength] = t; newList[oldLength + 1] = listener; listenerList = newList; } | public void add(Class t, EventListener listener) { // Variables Object[] list; int index; Class checkClass; EventListener checkListener; // Create New list in anticipation that listener is not present list = new Object[listenerList.length + 2]; // Search through list looking for listener for (index = 0;... |
{ vert_align = alignment; } | { if (alignment != verticalAlignment) { int oldAlignment = verticalAlignment; verticalAlignment = checkVerticalKey(alignment, "verticalAlignment"); firePropertyChange(VERTICAL_ALIGNMENT_CHANGED_PROPERTY, oldAlignment, verticalAlignment); } } | public void setVerticalAlignment(int alignment) { // Sets the alignment of the label's contents along the Y axis. vert_align = alignment; } |
{ hor_align = alignment; } | { int oldAlignment = horizontalAlignment; horizontalAlignment = checkHorizontalKey(alignment, "horizontalAlignment"); firePropertyChange(HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, oldAlignment, horizontalAlignment); } | public void setHorizontalAlignment(int alignment) { // Sets the alignment of the label's contents along the X axis. hor_align = alignment; } |
public void remove(Class t, EventListener listener) { | public void remove(Class t, EventListener listener) { Object[] oldList, newList; int oldLength; | public void remove(Class t, EventListener listener) { // Variables Object[] list; int index; Class checkClass; EventListener checkListener; int pointer; boolean found; // Create New list in anticipation that listener is not present if (listenerList.length == 0) { return; } // if list = new Obje... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.