Render the picked up itemStack at the cursor position.

@param itemStack the item stack
8902
public boolean renderPickedItemStack(ItemStack itemStack)
	{
		if (itemStack == null || itemStack == ItemStack.EMPTY)
			return false;

		int size = itemStack.getCount();
		String label = null;
		if (size == 0)
		{
			itemStack.setCount(size != 0 ? size : 1);
			label = TextFormatting.YELLOW + "0";
		}

		itemRenderer.zLevel = 100;
		drawItemStack(itemStack, MalisisGui.MOUSE_POSITION.x() - 8, MalisisGui.MOUSE_POSITION.y() - 8, label, null, false);
		itemRenderer.zLevel = 0;
		return true;
	}
1191978
void selectTab(final Dockable t) {
        // Remove all previously displayed children
        this.stackPane.getChildren().clear();
        //
        this.stackPane.getChildren().add(model().getModel(t.modelKey()).node());
    }
625618
public TableWriteItems withItemsToPut(Collection<Item> itemsToPut) {
        if (itemsToPut == null)
            this.itemsToPut = null;
        else
            this.itemsToPut = new ArrayList<Item>(itemsToPut);
        return this;
    }
1352362
public void handleSelection(String itemId) {

        Collection<?> selection = (Collection<?>)m_fileTable.getValue();
        if (selection == null) {
            m_fileTable.select(itemId);
        } else if (!selection.contains(itemId)) {
            m_fileTable.setValue(null);
            m_fileTable.select(itemId);
        }
    }
303324
private ItemStack handleDropSlot(MalisisSlot hoveredSlot, boolean fullStack)
	{
		ItemStack itemStack = hoveredSlot.getItemStack();
		if (itemStack.isEmpty() || !hoveredSlot.isState(PLAYER_EXTRACT))
			return itemStack;

		ItemUtils.ItemStackSplitter iss = new ItemUtils.ItemStackSplitter(hoveredSlot.getItemStack());
		iss.split(fullStack ? ItemUtils.FULL_STACK : 1);

		hoveredSlot.setItemStack(iss.source);
		//if (slot.hasChanged())
		hoveredSlot.onSlotChanged();
		owner.dropItem(iss.split, true);

		if (iss.amount != 0)
			hoveredSlot.onPickupFromSlot(owner, iss.split);

		return iss.split;
	}
1171942
public static ItemStack copy(ItemStack itemStack)
	{
		//we need to make sure the itemStack is not empty before copying
		int originalSize = itemStack.getCount();
		itemStack.setCount(1);

		ItemStack copy = itemStack.copy();
		//set the size back
		copy.setCount(originalSize);
		itemStack.setCount(originalSize);
		return copy;
	}
736867
public static void setStack(final Collection<String> stack) {
        if (stack.isEmpty() || !useStack) {
            return;
        }
        contextStack.clear();
        contextStack.addAll(stack);
    }
348282
public void setStackResources(java.util.Collection<StackResource> stackResources) {
        if (stackResources == null) {
            this.stackResources = null;
            return;
        }

        this.stackResources = new com.amazonaws.internal.SdkInternalList<StackResource>(stackResources);
    }
872567
public void onClick(MenuItemClickEvent event) {
		FeatureTransaction ft = mapWidget.getMapModel().getFeatureEditor().getFeatureTransaction();
		if (ft != null && index != null) {
			mapWidget.render(ft, RenderGroup.VECTOR, RenderStatus.DELETE);
			RemoveCoordinateOp op = new RemoveCoordinateOp(index);
			ft.execute(op);
			mapWidget.render(ft, RenderGroup.VECTOR, RenderStatus.ALL);
		}
	}
552643
public void render(int x, int y, int layer) {
		render(x, y, 0, 0, getWidth(), getHeight(), layer, false);
	}
214889
private ItemStack handleDropPickedStack(boolean fullStack)
	{
		ItemUtils.ItemStackSplitter iss = new ItemUtils.ItemStackSplitter(pickedItemStack);
		iss.split(fullStack ? ItemUtils.FULL_STACK : 1);

		owner.dropItem(iss.split, true);
		setPickedItemStack(iss.source);

		return iss.source;
	}
38474
private void onNavDrawerItemClicked(final int itemId) {
        if (itemId == mSelectedItem) {
            mDrawerLayout.closeDrawer(GravityCompat.START);
            return;
        }

        if (isSpecialItem(itemId)) {
            goToNavDrawerItem(itemId);
        } else {
            // launch the target Activity after a short delay, to allow the close animation to play
            mHandler.postDelayed(new Runnable() {
                @Override
                public void run() {
                    goToNavDrawerItem(itemId);
                }
            }, mConfig.getLaunchDelay());

            // change the active item on the list so the user can see the item changed
            setSelectedNavDrawerItem(itemId);

            // fade out the main content
//            if (mMainContent != null && mConfig.getFadeOutDuration() != -1) {
//                mMainContent.animate().alpha(0).setDuration(mConfig.getFadeOutDuration());
//            }
        }

        mDrawerLayout.closeDrawer(GravityCompat.START);
    }
416414
@Override
	protected void resetDrag()
	{
		if (!isDraggingItemStack())
			return;

		//if (!pickedItemStack.isEmpty())
		pickedItemStack = draggedItemStack.copy();

		draggedSlots.forEach(s -> s.setDraggedItemStack(ItemStack.EMPTY));

		draggedSlots.clear();
		draggedItemStack = null;
		dragType = -1;
	}
78481
public void render(ViewState viewState)
    {
        if (viewState.loadingData())
            mMainBinding.tvText.append("\nLoading...");
        else if (viewState.data() != null)
            mMainBinding.tvText.append("\n" + viewState.data());
    }
300597
@SuppressFBWarnings("RV_RETURN_VALUE_IGNORED_INFERRED")
    private void renderLeaf(final TreeNode root, final String name,
                            final Class<?> item, final List<String> markers) {
        root.child(String.format("%-10s ", name) + RenderUtils.renderClassLine(item, markers));
    }
507151
private void render(List<T> data) {
        List<Widget> widgets = new ArrayList<>();
        for (T model : data) {
            Widget widget = renderer.render(model);
            widget.getElement().setId("item-" + itemCount);
            add(widget);
            widgets.add(widget);
            itemCount++;
        }

        // Check if recycling is enabled
        if (isEnableRecycling()) {
            recycleManager.recycleWidgets(widgets);
        }

        // Will force the scroll panel to have a scroll if it isn't visible
        if (!hasScrollBar()) {
            int height = $(widgets.get(0).getElement()).outerHeight();
            getElement().getStyle().setHeight(height, Style.Unit.PX);
        }
    }
1046825
public boolean extractInto(ItemStack itemStack)
	{
		ItemStacksMerger ism = new ItemStacksMerger(getItemStack(), itemStack);
		if (!ism.merge())
			return false;
		if (ism.nbMerged != 0)
		{
			setItemStack(ism.merge);
			onSlotChanged();
		}
		return itemStack.getCount() >= itemStack.getMaxStackSize();
	}