java.beans.Transient Java Examples

The following examples show how to use java.beans.Transient. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JList.java    From jdk8u-dev-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Returns an array of all of the selected indices, in increasing
 * order.
 *
 * @return all of the selected indices, in increasing order,
 *         or an empty array if nothing is selected
 * @see #removeSelectionInterval
 * @see #addListSelectionListener
 */
@Transient
public int[] getSelectedIndices() {
    ListSelectionModel sm = getSelectionModel();
    int iMin = sm.getMinSelectionIndex();
    int iMax = sm.getMaxSelectionIndex();

    if ((iMin < 0) || (iMax < 0)) {
        return new int[0];
    }

    int[] rvTmp = new int[1+ (iMax - iMin)];
    int n = 0;
    for(int i = iMin; i <= iMax; i++) {
        if (sm.isSelectedIndex(i)) {
            rvTmp[n++] = i;
        }
    }
    int[] rv = new int[n];
    System.arraycopy(rvTmp, 0, rv, 0, n);
    return rv;
}
 
Example #2
Source File: ScrollPane.java    From jdk-1.7-annotated with Apache License 2.0 5 votes vote down vote up
/**
 * Returns the current x,y position within the child which is displayed
 * at the 0,0 location of the scrolled panel's view port.
 * This is a convenience method which interfaces with the adjustable
 * objects which represent the state of the scrollbars.
 * @return the coordinate position for the current scroll position
 * @throws NullPointerException if the scrollpane does not contain
 *     a child
 */
@Transient
public Point getScrollPosition() {
    synchronized (getTreeLock()) {
        if (getComponentCount()==0) {
            throw new NullPointerException("child is null");
        }
        return new Point(hAdjustable.getValue(), vAdjustable.getValue());
    }
}
 
Example #3
Source File: Marker.java    From aws-athena-query-federation with Apache License 2.0 5 votes vote down vote up
/**
 * Retrieves the value held in this Marker.
 *
 * @return The value.
 */
@Transient
public Object getValue()
{
    if (nullValue) {
        throw new IllegalStateException("No value to get");
    }
    return value;
}
 
Example #4
Source File: ScrollPane.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns the current x,y position within the child which is displayed
 * at the 0,0 location of the scrolled panel's view port.
 * This is a convenience method which interfaces with the adjustable
 * objects which represent the state of the scrollbars.
 * @return the coordinate position for the current scroll position
 * @throws NullPointerException if the scrollpane does not contain
 *     a child
 */
@Transient
public Point getScrollPosition() {
    synchronized (getTreeLock()) {
        if (getComponentCount()==0) {
            throw new NullPointerException("child is null");
        }
        return new Point(hAdjustable.getValue(), vAdjustable.getValue());
    }
}
 
Example #5
Source File: Test4935607.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
@Transient(false)
public Object getProperty() {
    return this;
}
 
Example #6
Source File: DefaultListSelectionModel.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
@Transient
public int getAnchorSelectionIndex() {
    return anchorIndex;
}
 
Example #7
Source File: TestEntityTransient.java    From mongo-mapper with Apache License 2.0 4 votes vote down vote up
@Transient
public String getNope() {
    return nope;
}
 
Example #8
Source File: Split.java    From aws-athena-query-federation with Apache License 2.0 4 votes vote down vote up
@Transient
public static Builder newBuilder(SpillLocation spillLocation, EncryptionKey encryptionKey)
{
    return new Builder().withSpillLocation(spillLocation).withEncryptionKey(encryptionKey);
}
 
Example #9
Source File: Test4935607.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
@Transient
public void removeEventSetListener(EventSetListener listener) {
}
 
Example #10
Source File: Test4935607.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Transient
public void addEventSetListener(EventSetListener listener) {
}
 
Example #11
Source File: Test4935607.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
@Override
@Transient
public void removeEventSetListener(EventSetListener listener) {
}
 
Example #12
Source File: Test4935607.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
@Override
@Transient(false)
public Object getProperty() {
    return this;
}
 
Example #13
Source File: Test4935607.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Override
@Transient
public void addEventSetListener(EventSetListener listener) {
}
 
Example #14
Source File: Test4935607.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@Override
@Transient
public void removeEventSetListener(EventSetListener listener) {
}
 
Example #15
Source File: Test4935607.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Override
@Transient
public void setProperty(Object object) {
}
 
Example #16
Source File: Test4935607.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@Transient
public void setProperty(Object object) {
}
 
Example #17
Source File: Test4935607.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Override
@Transient
public void setProperty(Object object) {
}
 
Example #18
Source File: Test4935607.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
@Transient(false)
public Object getProperty() {
    return this;
}
 
Example #19
Source File: Test4935607.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
@Transient(false)
public void removeEventSetListener(EventSetListener listener) {
}
 
Example #20
Source File: Test4935607.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Transient
public Object getProperty() {
    return this;
}
 
Example #21
Source File: Test4935607.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
@Transient
public void removeEventSetListener(EventSetListener listener) {
}
 
Example #22
Source File: Test4935607.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
@Transient
public void setProperty(Object object) {
}
 
Example #23
Source File: Test4935607.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
@Transient(false)
public void addEventSetListener(EventSetListener listener) {
}
 
Example #24
Source File: Test4935607.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
@Transient
public Object getProperty() {
    return this;
}
 
Example #25
Source File: Test4935607.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
@Transient
public void setProperty(Object object) {
}
 
Example #26
Source File: Test4935607.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@Override
@Transient
public void addEventSetListener(EventSetListener listener) {
}
 
Example #27
Source File: Test4935607.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Override
@Transient(false)
public void addEventSetListener(EventSetListener listener) {
}
 
Example #28
Source File: Test4935607.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
@Transient
public void removeEventSetListener(EventSetListener listener) {
}
 
Example #29
Source File: Test4935607.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Override
@Transient
public void removeEventSetListener(EventSetListener listener) {
}
 
Example #30
Source File: Test4935607.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@Transient
public void addEventSetListener(EventSetListener listener) {
}