All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bugvm.apple.uikit.UICollectionView Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (C) 2013-2015 RoboVM AB
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.bugvm.apple.uikit;

/**/
import java.io.*;
import java.nio.*;
import java.util.*;
import com.bugvm.objc.*;
import com.bugvm.objc.annotation.*;
import com.bugvm.objc.block.*;
import com.bugvm.rt.*;
import com.bugvm.rt.annotation.*;
import com.bugvm.rt.bro.*;
import com.bugvm.rt.bro.annotation.*;
import com.bugvm.rt.bro.ptr.*;
import com.bugvm.apple.foundation.*;
import com.bugvm.apple.coreanimation.*;
import com.bugvm.apple.coregraphics.*;
import com.bugvm.apple.coredata.*;
import com.bugvm.apple.coreimage.*;
import com.bugvm.apple.coretext.*;
import com.bugvm.apple.corelocation.*;
/**/

/**/
/**
 * @since Available in iOS 6.0 and later.
 */
/**/
/**/@Library("UIKit") @NativeClass/**/
/**/public/**/ class /**/UICollectionView/**/ 
    extends /**/UIScrollView/**/ 
    /**//**/ {

    /**/public static class UICollectionViewPtr extends Ptr {}/**/
    /**/static { ObjCRuntime.bind(UICollectionView.class); }/**/
    /**//**/
    /**/
    public UICollectionView() {}
    protected UICollectionView(SkipInit skipInit) { super(skipInit); }
    public UICollectionView(@ByVal CGRect frame, UICollectionViewLayout layout) { super((SkipInit) null); initObject(init(frame, layout)); }
    public UICollectionView(NSCoder aDecoder) { super((SkipInit) null); initObject(init(aDecoder)); }
    /**/
    /**/
    @Property(selector = "collectionViewLayout")
    public native UICollectionViewLayout getCollectionViewLayout();
    @Property(selector = "setCollectionViewLayout:")
    public native void setCollectionViewLayout(UICollectionViewLayout v);
    @Property(selector = "delegate")
    public native UICollectionViewDelegate getDelegate();
    @Property(selector = "setDelegate:", strongRef = true)
    public native void setDelegate(UICollectionViewDelegate v);
    @Property(selector = "dataSource")
    public native UICollectionViewDataSource getDataSource();
    @Property(selector = "setDataSource:", strongRef = true)
    public native void setDataSource(UICollectionViewDataSource v);
    @Property(selector = "backgroundView")
    public native UIView getBackgroundView();
    @Property(selector = "setBackgroundView:")
    public native void setBackgroundView(UIView v);
    @Property(selector = "allowsSelection")
    public native boolean allowsSelection();
    @Property(selector = "setAllowsSelection:")
    public native void setAllowsSelection(boolean v);
    @Property(selector = "allowsMultipleSelection")
    public native boolean allowsMultipleSelection();
    @Property(selector = "setAllowsMultipleSelection:")
    public native void setAllowsMultipleSelection(boolean v);
    /**/
    /**//**/
    /**/
    @Method(selector = "initWithFrame:collectionViewLayout:")
    protected native @Pointer long init(@ByVal CGRect frame, UICollectionViewLayout layout);
    @Method(selector = "initWithCoder:")
    protected native @Pointer long init(NSCoder aDecoder);
    @Method(selector = "registerClass:forCellWithReuseIdentifier:")
    public native void registerReusableCellClass(Class cellClass, String identifier);
    @Method(selector = "registerNib:forCellWithReuseIdentifier:")
    public native void registerReusableCellNib(UINib nib, String identifier);
    @Method(selector = "registerClass:forSupplementaryViewOfKind:withReuseIdentifier:")
    public native void registerReusableSupplementaryViewClass(Class viewClass, UICollectionElementKind elementKind, String identifier);
    @Method(selector = "registerNib:forSupplementaryViewOfKind:withReuseIdentifier:")
    public native void registerReusableSupplementaryViewNib(UINib nib, UICollectionElementKind kind, String identifier);
    @Method(selector = "dequeueReusableCellWithReuseIdentifier:forIndexPath:")
    public native UICollectionReusableView dequeueReusableCell(String identifier, NSIndexPath indexPath);
    @Method(selector = "dequeueReusableSupplementaryViewOfKind:withReuseIdentifier:forIndexPath:")
    public native UICollectionReusableView dequeueReusableSupplementaryView(UICollectionElementKind elementKind, String identifier, NSIndexPath indexPath);
    @Method(selector = "indexPathsForSelectedItems")
    public native NSArray getIndexPathsForSelectedItems();
    @Method(selector = "selectItemAtIndexPath:animated:scrollPosition:")
    public native void selectItem(NSIndexPath indexPath, boolean animated, UICollectionViewScrollPosition scrollPosition);
    @Method(selector = "deselectItemAtIndexPath:animated:")
    public native void deselectItem(NSIndexPath indexPath, boolean animated);
    @Method(selector = "reloadData")
    public native void reloadData();
    @Method(selector = "setCollectionViewLayout:animated:")
    public native void setCollectionViewLayout(UICollectionViewLayout layout, boolean animated);
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Method(selector = "setCollectionViewLayout:animated:completion:")
    public native void setCollectionViewLayout(UICollectionViewLayout layout, boolean animated, @Block VoidBooleanBlock completion);
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Method(selector = "startInteractiveTransitionToCollectionViewLayout:completion:")
    public native UICollectionViewTransitionLayout startInteractiveTransition(UICollectionViewLayout layout, @Block VoidBlock2 completion);
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Method(selector = "finishInteractiveTransition")
    public native void finishInteractiveTransition();
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Method(selector = "cancelInteractiveTransition")
    public native void cancelInteractiveTransition();
    @Method(selector = "numberOfSections")
    public native @MachineSizedSInt long getNumberOfSections();
    @Method(selector = "numberOfItemsInSection:")
    public native @MachineSizedSInt long getNumberOfItemsInSection(@MachineSizedSInt long section);
    @Method(selector = "layoutAttributesForItemAtIndexPath:")
    public native UICollectionViewLayoutAttributes getLayoutAttributesForItem(NSIndexPath indexPath);
    @Method(selector = "layoutAttributesForSupplementaryElementOfKind:atIndexPath:")
    public native UICollectionViewLayoutAttributes getLayoutAttributesForSupplementaryElement(UICollectionElementKind kind, NSIndexPath indexPath);
    @Method(selector = "indexPathForItemAtPoint:")
    public native NSIndexPath getIndexPathForItem(@ByVal CGPoint point);
    @Method(selector = "indexPathForCell:")
    public native NSIndexPath getIndexPathForCell(UICollectionViewCell cell);
    @Method(selector = "cellForItemAtIndexPath:")
    public native UICollectionViewCell getCellForItem(NSIndexPath indexPath);
    @Method(selector = "visibleCells")
    public native NSArray getVisibleCells();
    @Method(selector = "indexPathsForVisibleItems")
    public native NSArray getIndexPathsForVisibleItems();
    /**
     * @since Available in iOS 9.0 and later.
     */
    @Method(selector = "supplementaryViewForElementKind:atIndexPath:")
    public native UICollectionReusableView getSupplementaryView(String elementKind, NSIndexPath indexPath);
    /**
     * @since Available in iOS 9.0 and later.
     */
    @Method(selector = "visibleSupplementaryViewsOfKind:")
    public native NSArray getVisibleSupplementaryViews(String elementKind);
    /**
     * @since Available in iOS 9.0 and later.
     */
    @Method(selector = "indexPathsForVisibleSupplementaryElementsOfKind:")
    public native NSArray getIndexPathsForVisibleSupplementaryElements(String elementKind);
    @Method(selector = "scrollToItemAtIndexPath:atScrollPosition:animated:")
    public native void scrollToItem(NSIndexPath indexPath, UICollectionViewScrollPosition scrollPosition, boolean animated);
    @Method(selector = "insertSections:")
    public native void insertSections(NSIndexSet sections);
    @Method(selector = "deleteSections:")
    public native void deleteSections(NSIndexSet sections);
    @Method(selector = "reloadSections:")
    public native void reloadSections(NSIndexSet sections);
    @Method(selector = "moveSection:toSection:")
    public native void moveSection(@MachineSizedSInt long section, @MachineSizedSInt long newSection);
    @Method(selector = "insertItemsAtIndexPaths:")
    public native void insertItems(NSArray indexPaths);
    @Method(selector = "deleteItemsAtIndexPaths:")
    public native void deleteItems(NSArray indexPaths);
    @Method(selector = "reloadItemsAtIndexPaths:")
    public native void reloadItems(NSArray indexPaths);
    @Method(selector = "moveItemAtIndexPath:toIndexPath:")
    public native void moveItem(NSIndexPath indexPath, NSIndexPath newIndexPath);
    @Method(selector = "performBatchUpdates:completion:")
    public native void performBatchUpdates(@Block Runnable updates, @Block VoidBooleanBlock completion);
    /**
     * @since Available in iOS 9.0 and later.
     */
    @Method(selector = "beginInteractiveMovementForItemAtIndexPath:")
    public native boolean beginInteractiveMovement(NSIndexPath indexPath);
    /**
     * @since Available in iOS 9.0 and later.
     */
    @Method(selector = "updateInteractiveMovementTargetPosition:")
    public native void updateInteractiveMovement(@ByVal CGPoint targetPosition);
    /**
     * @since Available in iOS 9.0 and later.
     */
    @Method(selector = "endInteractiveMovement")
    public native void endInteractiveMovement();
    /**
     * @since Available in iOS 9.0 and later.
     */
    @Method(selector = "cancelInteractiveMovement")
    public native void cancelInteractiveMovement();
    /**/
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy