package com.github.hisaichi5518.kise.example.units;

import android.view.View;

import com.github.hisaichi5518.kise.Unit;

public class ViewVisibleUnit extends Unit<View> {
    @Override
    public void customAction(View view) throws Exception {
        view.setVisibility(View.VISIBLE);
    }

    @Override
    public void defaultAction(View view) {
        view.setVisibility(View.GONE);
    }
}

@@ -46,16 +46,59 @@
 units;%0A%0A
+import android.support.annotation.NonNull;%0A
 import a
@@ -152,16 +152,25 @@
 18.kise.
+unittype.
 Unit;%0A%0Ap
@@ -213,16 +213,122 @@
 Unit
-%3CView%3E %7B
+ %7B%0A    private final View view;%0A%0A    public ViewVisibleUnit(@NonNull View view) %7B%0A        this.view = view;%0A    %7D%0A
 %0A   
@@ -339,29 +339,32 @@
 erride%0A    p
-ublic
+rotected
  void custom
@@ -370,25 +370,16 @@
 mAction(
-View view
 ) throws
@@ -391,32 +391,37 @@
 ption %7B%0A        
+this.
 view.setVisibili
@@ -464,21 +464,24 @@
 de%0A    p
-ublic
+rotected
  void de
@@ -492,25 +492,16 @@
 tAction(
-View view
 ) %7B%0A    
@@ -504,16 +504,21 @@
         
+this.
 view.set

Use kise.unittype.Unit